We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c59b5f commit 9a2ec55Copy full SHA for 9a2ec55
system/ui/lib/toggle.py
@@ -25,7 +25,7 @@ def handle_input(self):
25
if not self._enabled:
26
return 0
27
28
- if rl.is_mouse_button_pressed(rl.MOUSE_LEFT_BUTTON):
+ if rl.is_mouse_button_released(rl.MOUSE_LEFT_BUTTON):
29
if rl.check_collision_point_rec(rl.get_mouse_position(), self._rect):
30
self._state = not self._state
31
self._target = 1.0 if self._state else 0.0
0 commit comments