-1

When I double click somewhere on a hml page there is zooming effect on iPad appears.

How could I disable this behaviour?

2 Answers2

2

Have you tried setting the css property touch-action to none?

.disable-zoom {
    touch-action: none;
}

This disables all the actions on the screen. If you want to disable just the double tap and perform other actions like pinch to zoom etc. use the following

.disable-double-tap {
  touch-action: manipulate;
}
Pixel92283
  • 51
  • 6
1

All you have to do is add a meta tag in your html code:

<meta 
 name='viewport' 
 content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'/>
Mailyan
  • 195
  • 1
  • 4