ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 1 (رد واحد)
  • 1 has this problem
  • 1 view
  • آخر ردّ كتبه Matt Brubeck

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!

Modified by lxspine

All Replies (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