thumbs.js icon indicating copy to clipboard operation
thumbs.js copied to clipboard

Touchevents are not emulated properly

Open d4rky-pl opened this issue 13 years ago • 3 comments

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.

d4rky-pl avatar Jan 28 '12 21:01 d4rky-pl

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!

mwbrooks avatar Jan 28 '12 23:01 mwbrooks

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

ghost avatar Apr 07 '15 19:04 ghost

Hi @iconicsammy,

Does this example help you:

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

mwbrooks avatar Apr 07 '15 20:04 mwbrooks