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 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