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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With