thumbs.js
thumbs.js copied to clipboard
Touchevents are not emulated properly
To make it work, you'd have to implement:
- touches
- targetTouches
- changedTouches
See: http://www.html5rocks.com/en/mobile/touch.html#toc-events
Otherwise it's pretty much useless with everything slightly more complex than simple tapping.
Hi Michał,
When thumbs.js first came about, there was no standard for touch events. Webkit on Android, BlackBerry, and iOS all implemented the touch details differently. Since I only needed the simple events, I decided to avoid the hard stuff.
Recently, W3C has got around to the TouchEvent Specification. Both @ryanbetts and myself would really like to see thumbs.js polyfill this spec. However, my current project does not need anything beyond the basic touch events.
I wonder if Cordova-WP7 could benefit from thumbs.js implementing the entire W3C TouchEvent spec? What are your thoughts @purplecabbage?
@d4rky-pl, if you have a need for the full TouchEvent spec, it would be great to see a patch!
You created a framework yet no working example? I understand that's not your interest....but still :(
Hi @iconicsammy,
Does this example help you:
https://github.com/mwbrooks/thumbs.js/blob/master/example/index.html