Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable default pinch to zoom using mozilla firefox on Microsoft Tablet/ Touch screen monitor

Well, my requirement is to zoom and pan the svg in all devices/all browsers. I have implemented it with using panzoom.js.

Now, i am facing an issue with Mozilla firefox in tablet and windows touch screen monitor. When i try to pinch and zoom the svg. It doesn't catch my event rather it catches the browser event and uses browsers zoom and zooms the whole page.

I have tried the steps below: I added this meta tag in the head of the html.

<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 have also tried the following property which works in IE 11 and IE edge.

touch-action:none;

Nothing is working in Mozilla.

I need to disable the browsers zoom on pinch so that i can implement my functionality.

Thanks in advance!

like image 574
Rohit Arora Avatar asked Oct 04 '16 07:10

Rohit Arora


People also ask

How do I stop Firefox from zooming in automatically?

Luckily, if you're as annoyed as I am about this, there is a quick and easy fix. Step One: Open up Firefox and click the address bar (where you enter a URL) and then type about:config and press ENTER. Step Two: You'll see a warning pop up. Go ahead and click the button that says, “I'll be careful, I promise!”

How do I turn off the zoom on my touch screen?

Tap Settings. Tap Room. Tap the Touch-screen features button to disable the touch UI. Once disabled, the home screen will switch to the normal Zoom Room UI.


1 Answers

try this :

<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,user-scalable=no,minimal-ui,minimum-scale=1.0,maximum-scale=1.0">
like image 70
MajiD Avatar answered Oct 26 '22 17:10

MajiD