Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can anyone suggest a place to start with javascript touch events for the web?

I would like to learn how to make image galleries and content sliders that can support both touch and mouse events. What's a good place to start learning about touch events?

I can't seem to find any official documentation.

Are there helpful touch libraries supported through jQuery that normalize the api?

like image 762
Amit Erandole Avatar asked Dec 30 '11 13:12

Amit Erandole


1 Answers

There is a good Apple documentation on touch events (but not only):

list of supported events on Safari Web Content Guide: Handling Events

You can also visit this page (JS script created by me) on your touch-enabled device and see what events are being triggered:

http://jsfiddle.net/wzD8A/embedded/result/

I believe different devices may fire different events. For example my own tablet-convertible PC does not fire touch events, when I click the screen, and Android may behave differently than eg. iPhone. I do not know any source of comprehensive information about the differences in this matter.

like image 156
Tadeck Avatar answered Sep 30 '22 03:09

Tadeck