* Options: Fix remote press when off the right edge of the scrollable area

This commit is contained in:
iProgramInCpp
2023-12-19 20:16:27 +02:00
parent 5fcbf20067
commit b168f33335

View File

@@ -36,6 +36,8 @@ void BooleanOptionItem::onClick(OptionList* pList, int mouseX, int mouseY)
if (mouseX <= itemX + C_SCROLLED_LIST_ITEM_WIDTH - C_ON_OFF_SWITCH_WIDTH - 6)
return;
if (mouseX > itemX + C_SCROLLED_LIST_ITEM_WIDTH - 6)
return;
// Toggle the value
toggleState(pList);