最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to detect android pinch zoom in javascript - Stack Overflow

programmeradmin5浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论