ElementSwipe
Index
Interfaces
Interfaces
Options
optionalanimation
A custom animation to play after succesfully executing a swipe
Defaults to a translation + fade-out in the Options.direction direction.
optionaldirection
The direction one should swipe in.
Defaults to right
.
optionalminSwipeDistance
The minimum distance one should swipe in pixels.
Defaults to 2.5% of the browser window's width.
optionalonClose
A callback to-be executed after succesfully swiping.
Default to dispatching a click
event.
Type declaration
Parameters
elem: HTMLElement
ev: TouchEvent
Returns any
A namespace for adding touch-based swiping behavior to elements