• Advertisement
Sign in to follow this  

Force and disable zoom in HTML for mobile?

This topic is 1469 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

 

Normally I strongly dislike when a website forces anything (like zoom levels).

 

However, when using a website in a mobile browser, double tapping will zoom, dragging will scroll, etc...

 

So if you make a game in JS that requires tapping, all kinds of unwanted effects like the mobile browser interpreting your tapping as zoom or scroll commands will happen.

 

Is there any way to make a website force a certain zoom level in a mobile browser, automatically showing the area of interest and having the browser not intercept double tapping?

Thanks!

Share this post


Link to post
Share on other sites
Advertisement
<meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">

usually does the trick

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement