viebel
viebel

Reputation: 20670

window.onzoom event for tablets/ipad?

Is there an event, similar to window.onorientationchange but triggered when zoom-in or zoom-out gestures were applied please? iPhone/iPad-related solutions are preferred, cross-tablet-platform solutions are warmly welcomed.

Upvotes: 3

Views: 3850

Answers (2)

viebel
viebel

Reputation: 20670

jQuery resize works on iOs. See http://api.jquery.com/resize/

Upvotes: 3

ZER0
ZER0

Reputation: 25322

There is no specific "zoom" event for multi touch I'm afraid, but you can use ongesturestart, ongesturechange and ongestureend to deal with them. In iOS using event.preventDefault method will prevent the zoom.

See: http://developer.apple.com/library/ios/#DOCUMENTATION/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html

Upvotes: 3

Related Questions