搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How do I use the touch/gesture event (e.g. slide)?

more options

I have the javascript function that use onmousemove to capture drag event. How can I do this in Firefox for Mobile (Android)? It would be like the slide event for the iphone or tablet. What types of events should I use to? Thank you!

I have the javascript function that use onmousemove to capture drag event. How can I do this in Firefox for Mobile (Android)? It would be like the slide event for the iphone or tablet. What types of events should I use to? Thank you!

由 lxspine 於 修改

所有回覆 (1)

more options

You can use the "touchstart" and "touchmove" events:

http://www.w3.org/TR/touch-events/

http://www.html5rocks.com/en/mobile/touch.html