View Full Version : Disabling page zoom
11-15-2011, 08:03 PM
Hey guys :)
I'm working on a game (that's a website) and would like to know if it's possible to disable page zooming on a computer. The reason I ask is because if they can zoom out, they can cheat.
Is there any code out there to stop it? I've seen some code for mobile browsers before.
11-15-2011, 08:13 PM
No there isn't any way of preventing page zoom on a computer.
Most operating systems have a magnify option built in so that those who have difficulty with small text can blow up a small section of the screen to many many times its original size regardless of what the specific applications that are being run do or don't allow with regard to zoom. There's also no way to block the zoom option within the browser. Combining both of these together would allow anyone to make somethinh hundreds of times its original size regardless of any attempt on the part of the author to prevent it.
The only way to stop people being able to zoom is to not put it on a computer.
11-15-2011, 08:16 PM
Thank you for the speedy reply felgall.
I feared this was this case, I guess this will be a flaw in the game then :(
Hey ho. Thanks again.
11-16-2011, 01:48 PM
or a nice hidden easter egg...it's all in how you spin it.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.