Javascript iPad Safari 触摸事件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5988170/
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
IPad Safari touch events
提问by hmthr
Which all touch events are provided or detected by Mobile Safari browser in IPad?
iPad 中的 Mobile Safari 浏览器提供或检测到哪些所有触摸事件?
Basically what all does webkit provide?
基本上 webkit 提供了什么?
I am kind of looking for the native app (IOS SDK) equivalent of touchesBegan, touchesMoved, etc.. in Safari..
我正在寻找 Safari 中与 touchesBegan、touchesMoved 等相当的本机应用程序 (IOS SDK)。
采纳答案by Craig White
This project handles it brilliantly, used it myself.
这个项目处理得很好,我自己用过。
http://cubiq.org/dropbox/iscroll4/examples/simple/
http://cubiq.org/dropbox/iscroll4/examples/simple/
View it on an iDevice.
在 iDevice 上查看。
回答by Petteri Hietavirta
Both iOS and Android browsers support touchStart, touchEnd and touchMove: http://backtothecode.blogspot.com/2009/10/javascript-touch-and-gesture-events.html
iOS 和 Android 浏览器都支持 touchStart、touchEnd 和 touchMove:http://backtothecode.blogspot.com/2009/10/javascript-touch-and-gesture-events.html
Detecting multitouch events seems to be possible on iOS: http://www.html5rocks.com/mobile/touch.html
在 iOS 上检测多点触控事件似乎是可能的:http: //www.html5rocks.com/mobile/touch.html
And if you prefer jQuery, there is jQuery mobile: http://jquerymobile.com/demos/1.0a4.1/#docs/api/events.html
如果你更喜欢 jQuery,还有 jQuery mobile:http: //jquerymobile.com/demos/1.0a4.1/#docs/api/events.html
回答by Scott C
All mobile safari events, per Apple: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
苹果的所有移动 safari 事件:https: //developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html