From 030dd9245fdb6acec8a8225e14646a48665b2c65 Mon Sep 17 00:00:00 2001 From: yaw-man Date: Thu, 18 Aug 2022 16:01:39 -0300 Subject: [PATCH] Bugfix: spuriously display button as clicked. --- src/yaw-tab/ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yaw-tab/ui.cpp b/src/yaw-tab/ui.cpp index aaf280e..85cd80b 100644 --- a/src/yaw-tab/ui.cpp +++ b/src/yaw-tab/ui.cpp @@ -40,7 +40,7 @@ void ButtonMappingWidget::onNanoDisplay() bool ButtonMappingWidget::onMouse(const MouseEvent &ev) { - isClicked = ev.press; + isClicked = ev.press && contains(ev.pos); return ButtonEventHandler::mouseEvent(ev); }