GianlucaGuarini / Tocca.js

Super lightweight script (~1kb) to detect via Javascript events like 'tap' 'dbltap' 'swipeup' 'swipedown' 'swipeleft' 'swiperight' on any kind of device.
http://gianlucaguarini.github.io/Tocca.js/
MIT License
660 stars 60 forks source link

Event Namespace support and Starting and Ending target elements #79

Closed tamb closed 3 years ago

tamb commented 3 years ago

I've added 2 features to this project:

  1. I added support for namespacing your touch events so they don't conflict with possible future implementations of native touch events.
  2. I added startingElement and endingElement to the event object triggered. This should make using this library a little easier.