Bugfix: spuriously display button as clicked.

This commit is contained in:
yaw-man 2022-08-18 16:01:39 -03:00
parent e52b8ef401
commit 030dd9245f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}