'touchpinchout' Special Event
Categories: Touch Events
.on( 'touchpinchout', ... )
Plugin: jQuery.event.special.touch
Description: Bind special event on touch pinch out.
-
.on( 'touchpinchout', ... )
version added: 1.3
This .on()
implements a simple bind to the touchpinchin
interaction.
The touchpinchout
event fires if the user drag together two fingers.
The recieved event object on touchpinchin
includes advanced properties:
- event.pinchDeltaT Milliseconds between start and end pinch event state.
- event.pinchDelta A float value which represents the diagonal pixel distance between the start and end distance of the fingers.
- event.pinchDeltaX A float value which represents the pixel distance between the start and end distance of the fingers on the x-axis.
- event.pinchDeltaY A float value which represents the pixel distance between the start and end distance of the fingers on the y-axis.
See the .on() and .off() method references for a way to bind/unbind event handlers.