From 4f02fb7815e90bd68588c9f4d3faab4b2d7f11c5 Mon Sep 17 00:00:00 2001 From: "Squishy (C6H12O6+NaCl+H2O)" <106439598+SweetSea-ButImNotSweet@users.noreply.github.com> Date: Tue, 21 May 2024 23:41:22 +0700 Subject: [PATCH] TEST --- libs/simple-button.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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