You can increase the scalability of users by comparing the width of the interval and the width of the document. The width of the document is the width of the device in pixels, the internal width is the pixels that appear on the screen when enlarged (relative to what was originally the width of the document). I tested this on android (ICS and Jellybean) and iOS (5 and 6) and it seems to work. Please note: I do not have my viewport set to the width or height of the device
ratio = document.width / window.innerWidth
if ratio > 1 then zommed else notZoomed
You can then do this check every time the user double-clicks or a pinch.
source
share