My goal is to enable zooming and panning for an SVG across all devices and browsers. I've successfully implemented this using panzoom.js.
However, I'm encountering an issue specifically with Mozilla Firefox on tablet devices and Windows touch screen monitors. When attempting to pinch and zoom the SVG, it seems to trigger the browser's zoom feature rather than my custom functionality.
I've taken several steps to address this issue:
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
I've also tried utilizing the following property which proved effective in IE 11 and Microsoft Edge:
touch-action:none;
Unfortunately, none of these solutions are working in Mozilla Firefox. My ultimate goal is to prevent the default browser zoom action when pinching so that my custom functionality can take precedence.
Any help or insights would be greatly appreciated!