pukhalski / tap

1Kb library for easy unified handling of user interactions such as mouse, touch and pointer events.
https://github.com/pukhalski/tap/archive/master.zip
MIT License
527 stars 45 forks source link

iOS9 tap is not working #46

Closed Zanisimo closed 8 years ago

Zanisimo commented 9 years ago

In iOS9 window.propertyIsEnumerable('ontouchstart') and document.hasOwnProperty('ontouchstart') both return false and there are no event listeners added because of this. Issue is tested on iPhone6 and iPad air 2 with iOS9

In my implementation I changed test in eventMatrix to ('ontouchstart' in window || 'ontouchstart' in document), but I only support Andriod and iOS devices. I am not sure if this fix would work.

Please advise on better solution if it is needed.

pablobirukov commented 9 years ago

Same here. Doesn't work on iOS9 and suggested solution solves the problem.

Altcore commented 9 years ago

I have same problem and my fix: https://github.com/pukhalski/tap/pull/44

squio commented 9 years ago

Just a heads up that fix #44 indeed works (tested with ios 9.0.2, iPhone 5 and iPad 3)

pukhalski commented 8 years ago

Fixed in #44. Thanks, guys!

BowlingX commented 8 years ago

Hey, I just realized the fix is not in the distribution package. Could you rebuild and publish to npm? Thank you :)

pukhalski commented 8 years ago

@ezhlobo