'touchzoom' Special Event
Categories: Touch Events
.bind( 'touchzoom', ... )
Plugin: jQuery.event.special.touch
Description: Bind special zoom event on touch interaction.
-
.bind( 'touchzoom', ... )
version added: 1.0
This .bind()
implements a simple bind to the touchzoom
interaction.
The touchzoom
event fires if the user drag together / apart two fingers.
The recieved event object on touchzoom
includes advanced properties:
- event.zoomDelta A float value which represents the diagonal pixel distance between the last and current distance of the fingers.
- event.zoomDeltaX A float value which represents the pixel distance between the last and current distance of the fingers on the x-axis.
- event.zoomDeltaY A float value which represents the pixel distance between the last and current distance of the fingers on the y-axis.
See the .bind() and .unbind() method references for a way to bind/unbind event handlers.