Fix #634 Disallow clicking if state isn't Pressed

This commit is contained in:
Grim Maple 2022-11-10 16:36:32 +03:00
parent 1e5ef75be6
commit 171df6864c
1 changed files with 1 additions and 1 deletions

View File

@ -1280,7 +1280,7 @@ public:
setFocus(); setFocus();
return true; return true;
} }
if (event.action == MouseAction.ButtonUp && event.button == MouseButton.Left) { if (event.action == MouseAction.ButtonUp && event.button == MouseButton.Left && state & State.Pressed) {
resetState(State.Pressed); resetState(State.Pressed);
handleClick(); handleClick();
return true; return true;