mirror of
https://github.com/celisej567/mcpe.git
synced 2025-12-31 17:49:17 +03:00
* Options: Fix remote press when off the right edge of the scrollable area
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user