'touchswiperight' Special Event
Categories: Touch Events
.on( 'touchswiperight', ... )
Plugin: jQuery.event.special.touch
Description: Bind special event on touch swiperight.
-
.on( 'touchswiperight', ... )
version added: 1.2
This .on()
implements a simple bind to the touchswiperight
interaction.
The touchswiperight
event fires, when the user moves the finger directly from left to rigth.
The recieved event object on touchswiperight
includes advanced properties:
- event.dragDeltaT Milliseconds between start and end of the swipe.
- event.dragDelta A float value which represents the diagonal pixel distance between the start and end position.
- event.dragDeltaX A float value which represents the pixel distance between the start and end position on the x-axis.
- event.dragDeltaY A float value which represents the pixel distance between the start and end position on the y-axis.
See the .on() and .off() method references for a way to bind/unbind event handlers.