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

Consider a prefix for the event name #5

Closed jacobrossi closed 10 years ago

jacobrossi commented 10 years ago

It's possible (though not currently planned) that browsers might one day support a native "tap" event. You might consider something like x-tap as the event name to prevent collisions.

pukhalski commented 10 years ago

Thanks, @jacobrossi. I will add a possibility to modify the name of event in the next release in a few days. Stay tuned!

DrMabuse23 commented 10 years ago

+1

patrickhlauke commented 10 years ago

...or call it "activate" ;)

pukhalski commented 10 years ago

I'm even wondering to experiment with replacing native click with click produced by Tap and see how it'll work...

pukhalski commented 10 years ago

@jacobrossi, now you are able to change the name of event itself. Just write Tap.options.eventName = 'x-tap'; in any place and it will be applied immediately.