...

View Full Version : Disabling page zoom



Owener94
11-15-2011, 09: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.

Regards
Owen Ayres

felgall
11-15-2011, 09: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.

Owener94
11-15-2011, 09: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.

Regards
Owen Ayres

resdog
11-16-2011, 02:48 PM
or a nice hidden easter egg...it's all in how you spin it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum