Skip to main content

Home > @jsplumbtoolkit/browser-ui > PinchListenerOptions

PinchListenerOptions interface

Pinch listener for all touch browsers - ipad, android, and windows laptops/surfaces. Needless to say, every browser does it differently. IE10+ uses PointerEvents; ipad safari/windows chrome/ipad chrome/ android chrome use TouchEvents. The listener posts pinchstart, pinch happening, and pinch end events.

Signature:

export interface PinchListenerOptions 

Properties

PropertyModifiersTypeDescription
elany
enableWheelZoom?boolean(Optional)
onPinch?Function(Optional)
onPinchEnd?Function(Optional)
onPinchStart?Function(Optional)