javascript 如何在javascript中检测android捏缩放
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11517086/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 13:29:09 来源:igfitidea点击:
How to detect android pinch zoom in javascript
提问by Shades88
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
我想知道是否有任何方法可以检测到是否发生了捏缩放事件。我可以通过为 iOS 使用此事件绑定来实现它
$(document).bind('gesturechange',function(event){
zoomAdjust();
});
Is there any such event for android devices?
android设备有没有这样的事件?
回答by Mithir
There is also another great jQuery plugin called TouchSwipe.
还有另一个很棒的 jQuery 插件叫做TouchSwipe。