From 72f6b91d2bf9774cb788db586122000db863c413 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Mon, 15 May 2023 14:30:21 +0100 Subject: [PATCH] [fix] pointer location not updating when moving over editing shape (#1378) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR is entirely unrelated to https://github.com/tldraw/tldraw/pull/1352. ### Change Type - [x] `minor` — New Feature ### Release Notes - Fix a bug where the pointer location would not update when moving the pointer over an editing shape. --- packages/editor/src/lib/hooks/useShapeEvents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/lib/hooks/useShapeEvents.ts b/packages/editor/src/lib/hooks/useShapeEvents.ts index 5bfab74ab..65dd88e92 100644 --- a/packages/editor/src/lib/hooks/useShapeEvents.ts +++ b/packages/editor/src/lib/hooks/useShapeEvents.ts @@ -13,7 +13,7 @@ const pointerEventHandler = ( capturedPointerIdLookup: Set ) => { return (e: React.PointerEvent) => { - if (app.pageState.editingId === shapeId) (e as any).isKilled = true + if (name !== 'pointer_move' && app.pageState.editingId === shapeId) (e as any).isKilled = true if ((e as any).isKilled) return let pointerInfo = getPointerInfo(e, app.getContainer())