From 5fb44623bedd30b4f9584c571ba2a5b5d1b4209c Mon Sep 17 00:00:00 2001 From: eireland Date: Wed, 2 Oct 2024 12:02:56 -0700 Subject: [PATCH] PR fix --- v3/src/components/container/free-tile-component.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v3/src/components/container/free-tile-component.tsx b/v3/src/components/container/free-tile-component.tsx index cbed26802a..b277ba2499 100644 --- a/v3/src/components/container/free-tile-component.tsx +++ b/v3/src/components/container/free-tile-component.tsx @@ -48,7 +48,9 @@ export const FreeTileComponent = observer(function FreeTileComponent({ row, tile if (draggedElement) { // Capture pointer events for the dragged tile draggedElement.addEventListener('pointermove', (event) => { - draggedElement.setPointerCapture(event.pointerId) + if (!draggedElement.hasPointerCapture(event.pointerId)) { + draggedElement.setPointerCapture(event.pointerId) + } }) draggedElement.addEventListener('pointerup', (event) => {