4

I would like to know if there's any way to detect that a pinch zoom event has taken place. I could achieve it by using this event binding for iOS

$(document).bind('gesturechange',function(event){
     zoomAdjust();
});

Is there any such event for android devices?

Shades88
  • 7,934
  • 22
  • 88
  • 130

2 Answers2

2

There is a great js ready for this called Hammer JS

Mithir
  • 2,355
  • 2
  • 25
  • 37
  • thanks that is a great way to detect plenty of the android events. However I went ahead with `scroll` event, as page is pinch zoomed it also gets scrolled. – Shades88 Jul 18 '12 at 19:30
  • 3
    This is not an answer, more of a comment, and it is a whole library, which is an overkill for a simple detection as asked in the question. :/ – vsync Sep 02 '17 at 07:55
1

There is also another great jQuery plugin called TouchSwipe.