Disable pinch to zoom in IE10
Asked Answered
S

3

15

In IE10 touch mode I wish to make only a certain part of the page zoomable. The rest should not be.

I found this: http://msdn.microsoft.com/en-US/library/ie/hh772044.aspx and tried to set -ms-touch-action: none to my body and html tags.

However I can still zoom. Did I miss something?

Supereminent answered 3/3, 2013 at 1:51 Comment(0)
S
27

Found the solution: -ms-content-zooming: none | zoom

Supereminent answered 3/3, 2013 at 2:2 Comment(2)
asked yourself, answered yourself. what can be better? voting upRecruitment
Also this work in the same way in webkit browser using: -webkit-content-zooming or content-zoomingExtended
M
6

For me this CSS code work

html {

      -ms-content-zooming: none;
      -ms-touch-action: pan-x pan-y;

}

I am using this code for disabling pinch and double tap zoom on windows tablet, I.E 10

Malda answered 5/12, 2014 at 11:50 Comment(0)
D
0

Try to add this in your Head area:

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
Dyadic answered 13/3, 2015 at 18:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.