How to detect zoom event (using multitouchale divice) on an element of a webpage and handle it? Thanks for help!
Asked
Active
Viewed 807 times
2
-
Please check out this [QUESTION][1] , I believe this will answer yours. [1]: http://stackoverflow.com/questions/995914/catch-browsers-zoom-event-in-javascript – laurens peeters Feb 27 '12 at 15:34
2 Answers
1
This type of zoom is handled internally by the browser and is not scriptable.
![](../../users/profiles/12579.webp)
Diodeus - James MacFarlane
- 107,156
- 31
- 147
- 171
0
So, if you want to implement zoom-like behavior (in plain JavaScript) in place of handing it to the browser, you need to handle [multi] touchstart/touchmove events yourself. Here's the touch event specification it's pretty comprehensive.
![](../../users/profiles/1037767.webp)
Alexander Pavlov
- 29,538
- 4
- 63
- 88