From 2ef6d6b3b5123a299c7ba0eacd778a8f10f6b9ac Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Sun, 28 Sep 2014 15:17:13 -0400 Subject: [PATCH] Make sure frame objects are hovered before allowing them to be resized --- objects/frame.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/frame.lua b/objects/frame.lua index aaff71d..db577da 100644 --- a/objects/frame.lua +++ b/objects/frame.lua @@ -504,7 +504,7 @@ function newobject:mousepressed(x, y, button) self.dragging = true end end - if not self.resizing and self.canresize then + if not self.resizing and self.canresize and loveframes.hoverobject == self then if loveframes.util.BoundingBox(self.x, x, self.y, y, 5, 1, 5, 1) then self.resizing = true self.dragging = false