diff --git a/packages/tldraw/src/state/tools/BaseTool.ts b/packages/tldraw/src/state/tools/BaseTool.ts index 824153b7f..c3b0ed43e 100644 --- a/packages/tldraw/src/state/tools/BaseTool.ts +++ b/packages/tldraw/src/state/tools/BaseTool.ts @@ -77,6 +77,7 @@ export abstract class BaseTool extends TDEventHandler { onPinch: TLPinchEventHandler = (info, e) => { if (this.status !== 'pinching') return + if (isNaN(info.delta[0]) || isNaN(info.delta[1])) return this.app.pinchZoom(info.point, info.delta, info.delta[2]) this.onPointerMove?.(info, e as unknown as React.PointerEvent) }