How to detect android pinch zoom in javascript - Stack Overflow

I would like to know if there's any way to detect that a pinch zoom event has taken place. I could

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?

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?

Share Improve this question asked Jul 17, 2012 at 6:27 Shades88Shades88 8,36025 gold badges92 silver badges134 bronze badges 4
  • Have you tried that in Android? Usually the events are the same. – ThinkingStiff Commented Jul 17, 2012 at 6:30
  • Possible duplicate: stackoverflow./questions/9818336/jquery-android-pinch-zoom – Peter Commented Jul 17, 2012 at 6:31
  • @ThinkingStiff yes I tried that in android, didn't work – Shades88 Commented Jul 17, 2012 at 7:07
  • any reason for downvote? – Shades88 Commented Jul 17, 2012 at 7:11
Add a ment  | 

2 Answers 2

Reset to default 2

There is a great js ready for this called Hammer JS

There is also another great jQuery plugin called TouchSwipe.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744275805a4566324.html

相关推荐

  • How to detect android pinch zoom in javascript - Stack Overflow

    I would like to know if there's any way to detect that a pinch zoom event has taken place. I could

    7天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信