Skip to main content

usePanZoomGestures()

function usePanZoomGestures(options): {
dragging: boolean;
};

Emit drag, wheel and pinch gestures in coordinates relative to the viewport center. The target should use touch-action: none. Listeners and pointer capture are released when disabled or unmounted.

Parameters

ParameterType
optionsUsePanZoomGesturesOptions

Returns

{
dragging: boolean;
}
NameType
draggingboolean