Firefox disable browser zoom but allow element zoom on pinch

被刻印的时光 ゝ 提交于 2019-12-01 11:24:37

You might be able to do this using the viewport metatag and Hammer.js

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

This will disable the default browser zoom.


You can then use Hammer.js to capture gesture events which you will then pass to your D3.js code to zoom your map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!