Skip to content

Commit

Permalink
fix: device is selected while dragging (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel-Pol authored Nov 12, 2024
1 parent 1f9ce70 commit 642548f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/types/devices/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export class Device extends Sprite {

onPointerDown(event: FederatedPointerEvent): void {
// console.log("Entered onPointerDown");
selectElement(this);
this.dragging = true;
event.stopPropagation();

Expand Down

0 comments on commit 642548f

Please sign in to comment.