[fix] pointer location not updating when moving over editing shape (#1378)

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.
This commit is contained in:
Steve Ruiz 2023-05-15 14:30:21 +01:00 committed by GitHub
parent 5cc04ef2fd
commit 72f6b91d2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ const pointerEventHandler = (
capturedPointerIdLookup: Set<string>
) => {
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())