option menu: fix dropdowns being clicked when clicking overlayed navigation button
This commit is contained in:
parent
7f37a51c48
commit
6d3336b7ea
|
@ -778,15 +778,17 @@ public class OptionsOverlay extends OverlayOpsuState {
|
|||
isAdjustingSlider = false;
|
||||
sliderOptionLength = 0;
|
||||
|
||||
if (openDropdownMenu != null) {
|
||||
openDropdownMenu.mouseReleased(button);
|
||||
updateHoverOption(x, y);
|
||||
return true;
|
||||
} else {
|
||||
for (DropdownMenu<Object> menu : visibleDropdownMenus) {
|
||||
menu.mouseReleased(button);
|
||||
if (menu.isOpen()) {
|
||||
return true;
|
||||
if (x > navWidth) {
|
||||
if (openDropdownMenu != null) {
|
||||
openDropdownMenu.mouseReleased(button);
|
||||
updateHoverOption(x, y);
|
||||
return true;
|
||||
} else {
|
||||
for (DropdownMenu<Object> menu : visibleDropdownMenus) {
|
||||
menu.mouseReleased(button);
|
||||
if (menu.isOpen()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user