This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-21 21:58:08 +07:00
parent 68d4e04142
commit c60d235bf5

View File

@@ -121,11 +121,13 @@ function button:release(x, y, isMouse)
if self._pressed then
self.codeWhenReleased()
self._pressed = false
end
if isMouse then
self:isHovering(x, y)
elseif self._hovering then
self._hovering = false
if isMouse then
self._hovering = self:isHovering(x, y)
error("mouse")
else
self._hovering = false
error("touch")
end
end
end
end