Skip to content

Commit

Permalink
PR fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eireland committed Oct 2, 2024
1 parent 821a3fd commit 5fb4462
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion v3/src/components/container/free-tile-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 52 in v3/src/components/container/free-tile-component.tsx

View check run for this annotation

Codecov / codecov/patch

v3/src/components/container/free-tile-component.tsx#L52

Added line #L52 was not covered by tests
}
})

draggedElement.addEventListener('pointerup', (event) => {
Expand Down

0 comments on commit 5fb4462

Please sign in to comment.