I needed to add zoom/pan on d3.js visualisation. After a painful search on Google, I finally found a simple way […]
Tag: #zoom
Lock iOS zoom until a user manually zooms.
// lock the zoom unless the user is manually zooming var viewportmeta = document.querySelector(‘meta[name=”viewport”]’); if (viewportmeta) { viewportmeta.content = ‘width=device-width, […]