This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-21 23:41:22 +07:00
parent bf54644287
commit 4f02fb7815

View File

@@ -120,7 +120,7 @@ function button:press(x, y)
end
---Trigger release action, don't need ``self._hovering`` to ``true``
function button:release(x, y)
if self:isHovering(x, y) and self._pressed then
if self:isHovering(x, y) then
self._pressed = false
self.codeWhenReleased()
end