diff --git a/radio/src/thirdparty/libopenui/src/checkbox.cpp b/radio/src/thirdparty/libopenui/src/checkbox.cpp index 9dd22bcfd..33f08aa52 100644 --- a/radio/src/thirdparty/libopenui/src/checkbox.cpp +++ b/radio/src/thirdparty/libopenui/src/checkbox.cpp @@ -44,11 +44,15 @@ void CheckBox::onEvent(event_t event) #if defined(HARDWARE_TOUCH) bool CheckBox::onTouchEnd(coord_t x, coord_t y) { - if (enabled) { - onKeyPress(); - _setValue(!getValue()); - setFocus(SET_FOCUS_DEFAULT); - invalidate(); + if (enabled) + { + if (x < (rect.w >> 2)) + { + onKeyPress(); + _setValue(!getValue()); + setFocus(SET_FOCUS_DEFAULT); + invalidate(); + } } return true; }