Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Force and disable zoom in HTML for mobile?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Lode   Members   -  Reputation: 987

Like
0Likes
Like

Posted 14 January 2014 - 06:42 PM

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!



Sponsor:

#2 guppy   Members   -  Reputation: 281

Like
0Likes
Like

Posted 15 January 2014 - 01:41 AM

<meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">

usually does the trick


/Please excuse my bad spelling - My native language is binary not english|Visit meTake my advice - I don''t use it...




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS