'touchpinchin' Special Event
Categories: Touch Events
.on( 'touchpinchin', ... )
Plugin: jQuery.event.special.touch
Description: Bind special event on touch pinch in.
-
.on( 'touchpinchin', ... )
version added: 1.3
This .on()
implements a simple bind to the touchpinchin
interaction.
The touchpinchin
event fires if the user drag apart 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.