diff --git a/libs/simple-button.lua b/libs/simple-button.lua index 45a0c1d..ce0498c 100644 --- a/libs/simple-button.lua +++ b/libs/simple-button.lua @@ -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