- Repo improvements, package upgrades
- Allow
preventScroll
to be a function (#33)
- Added e.target to the details object for the dispatched event (#28)
main
inpackage.json
refers todist/swipe-listener.min.js
instead ofindex.js
. Transpiled version would be served directly.- Added options
mouse
andtouch
to allow setting which input source swipes should be listened for. - Updated
package-lock.json
. - Added sanity checks for
TouchEvent
. Library should start working on IE and Edge. - Exports
default
for ES6 imports.
Add touch
property to events.
Uses passive
event listener for touchmove and mousemove events.
Adds swiping
, swiperelease
, swipecancel
events.
Adds support for swipes using mouse, defaults lockAxis
to true
.
Adds lockAxis
option.
Adds preventScroll
option.
- Renames
onswipe
toswipe
.
- Basic swipe-listener.