When I double click somewhere on a hml page there is zooming effect on iPad appears.
How could I disable this behaviour?
When I double click somewhere on a hml page there is zooming effect on iPad appears.
How could I disable this behaviour?
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;
}
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'/>