Window.onzoom event for tablets / ipad?

Is there an event similar to this window.onorientationchange

but triggered by the zoom in or out gesture? IPhone / iPad based solutions are preferred, cross-tablet solutions are welcome.


source to share

2 answers

jQuery resize

works for iOs

. See



There is no specific "zoom" event for multitouch, which I'm afraid of, but you can use ongesturestart

, ongesturechange

and ongestureend

, to deal with them. On iOS, using the method event.preventDefault

will prevent scaling.




All Articles