mwbrooks / thumbs.js

Add touch support to your browser with thumbs.js - a small, transparent, and syntax-less library.
http://mwbrooks.github.com/thumbs.js/
MIT License
318 stars 36 forks source link

Touchevents are not emulated properly #13

Open d4rky-pl opened 12 years ago

d4rky-pl commented 12 years ago

To make it work, you'd have to implement:

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.

mwbrooks commented 12 years ago

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!

ghost commented 9 years ago

You created a framework yet no working example? I understand that's not your interest....but still :(

mwbrooks commented 9 years ago

Hi @iconicsammy,

Does this example help you:

https://github.com/mwbrooks/thumbs.js/blob/master/example/index.html