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
| Parameter | Type |
|---|---|
options | UsePanZoomGesturesOptions |
Returns
{
dragging: boolean;
}
| Name | Type |
|---|---|
dragging | boolean |