Fix mouse in rectangle test
This commit is contained in:
parent
cd88aa2008
commit
946099e93d
1 changed files with 1 additions and 1 deletions
2
core.lua
2
core.lua
|
@ -64,7 +64,7 @@ end
|
|||
-- mouse handling
|
||||
function suit:mouseInRect(x,y,w,h)
|
||||
return self.mouse_x >= x and self.mouse_y >= y and
|
||||
self.mouse_x <= x+w and self.mouse_y > y+h
|
||||
self.mouse_x <= x+w and self.mouse_y <= y+h
|
||||
end
|
||||
|
||||
function suit:registerMouseHit(id, ul_x, ul_y, hit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue