user1235872
user1235872

Reputation: 275

Zoom event on an element of a web page

How to detect zoom event (using multitouchale divice) on an element of a webpage and handle it? Thanks for help!

Upvotes: 2

Views: 940

Answers (2)

Alexander Pavlov
Alexander Pavlov

Reputation: 32286

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.

Upvotes: 0

Diodeus - James MacFarlane
Diodeus - James MacFarlane

Reputation: 114347

This type of zoom is handled internally by the browser and is not scriptable.

Upvotes: 1

Related Questions