Skip to content

Commit

Permalink
fix drag example
Browse files Browse the repository at this point in the history
  • Loading branch information
jbakse committed Jan 14, 2022
1 parent a38b09b commit a63feac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/examples/drag_m/index.js
Expand Up @@ -83,10 +83,9 @@ function mousePressedSprite(s) {
}

function mouseReleasedSprite(s) {
if (s.owner === my_id && pointInRect(new Point(mouseX, mouseY), s.rect)) {
if (s.owner === my_id) {
s.inDrag = false;
s.owner = null;
return true;
}
return false;
}

0 comments on commit a63feac

Please sign in to comment.