'touchswipedown' Special Event
Categories: Touch Events
.on( 'touchswipedown', ... )
Plugin: jQuery.event.special.touch
Description: Bind special event on touch swipedown.
-
.on( 'touchswipedown', ... )
version added: 1.2
This .on()
implements a simple bind to the touchswipedown
interaction.
The touchswipedown
event fires, when the user moves the finger directly from top to bottom.
The recieved event object on touchswipedown
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.