Skip to content

Commit 01f62b6

Browse files
authored
Revert "Fix dragging within multiple editors" (#6599)
Reverts #6543 This was causing events to get dispatched multiple times (maybe 3???), resulting in v janky drawing: <img width="1731" height="739" alt="image" src="https://github.com/user-attachments/assets/16e56cb9-f42f-4ec8-b9ee-f3abd971892d" />
1 parent 654b400 commit 01f62b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/editor/src/lib/hooks/useCanvasEvents.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ export function useCanvasEvents() {
151151
let lastX: number, lastY: number
152152

153153
function onPointerMove(e: PointerEvent) {
154+
if ((e as any).isKilled) return
155+
;(e as any).isKilled = true
156+
154157
if (e.clientX === lastX && e.clientY === lastY) return
155158
lastX = e.clientX
156159
lastY = e.clientY

0 commit comments

Comments
 (0)