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:
@@ -120,7 +120,7 @@ function button:press(x, y)
|
|||||||
end
|
end
|
||||||
---Trigger release action, don't need ``self._hovering`` to ``true``
|
---Trigger release action, don't need ``self._hovering`` to ``true``
|
||||||
function button:release(x, y)
|
function button:release(x, y)
|
||||||
if self:isHovering(x, y) then
|
if self:isHovering(x, y) and self._pressed then
|
||||||
self._pressed = false
|
self._pressed = false
|
||||||
self.codeWhenReleased()
|
self.codeWhenReleased()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ function TouchConfigScene:onInputPress(e)
|
|||||||
end
|
end
|
||||||
---@param e SCENE_onInput
|
---@param e SCENE_onInput
|
||||||
function TouchConfigScene:onInputRelease(e)
|
function TouchConfigScene:onInputRelease(e)
|
||||||
if e.type == "mouse" or e.type == "touch" then
|
if e.x and e.y then
|
||||||
BUTTON.release(buttonList, e.x, e.y)
|
BUTTON.release(buttonList, e.x, e.y)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user