From a63feacb34e3836b8aa29b97b3c37575677da3c6 Mon Sep 17 00:00:00 2001 From: Justin Bakse Date: Fri, 14 Jan 2022 15:04:27 -0600 Subject: [PATCH] fix drag example --- public/examples/drag_m/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/examples/drag_m/index.js b/public/examples/drag_m/index.js index 177c241..45ee2a9 100644 --- a/public/examples/drag_m/index.js +++ b/public/examples/drag_m/index.js @@ -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; }