Skip to content

Commit

Permalink
refactor: don't prevent pointerup propagation when no drag
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Jan 13, 2025
1 parent 99e9ecb commit 007a413
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/lib/dnd/PointerSensor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ export class PointerSensor extends Sensor<
}

private handlePointerUp(event: PointerEvent) {
if (!this.source) {
return;
}

// Prevent the default behaviour of the event
event.preventDefault();
event.stopPropagation();
Expand Down

0 comments on commit 007a413

Please sign in to comment.