mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Make sure frame objects are hovered before allowing them to be resized
This commit is contained in:
parent
3a59f46cca
commit
2ef6d6b3b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user