diff --git a/src/dlangui/widgets/widget.d b/src/dlangui/widgets/widget.d index f54a38b9..83283538 100644 --- a/src/dlangui/widgets/widget.d +++ b/src/dlangui/widgets/widget.d @@ -1280,7 +1280,7 @@ public: setFocus(); 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); handleClick(); return true;