mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
TEST
This commit is contained in:
@@ -121,11 +121,13 @@ function button:release(x, y, isMouse)
|
|||||||
if self._pressed then
|
if self._pressed then
|
||||||
self.codeWhenReleased()
|
self.codeWhenReleased()
|
||||||
self._pressed = false
|
self._pressed = false
|
||||||
end
|
if isMouse then
|
||||||
if isMouse then
|
self._hovering = self:isHovering(x, y)
|
||||||
self:isHovering(x, y)
|
error("mouse")
|
||||||
elseif self._hovering then
|
else
|
||||||
self._hovering = false
|
self._hovering = false
|
||||||
|
error("touch")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user