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;
|
isAdjustingSlider = false;
|
||||||
sliderOptionLength = 0;
|
sliderOptionLength = 0;
|
||||||
|
|
||||||
if (openDropdownMenu != null) {
|
if (x > navWidth) {
|
||||||
openDropdownMenu.mouseReleased(button);
|
if (openDropdownMenu != null) {
|
||||||
updateHoverOption(x, y);
|
openDropdownMenu.mouseReleased(button);
|
||||||
return true;
|
updateHoverOption(x, y);
|
||||||
} else {
|
return true;
|
||||||
for (DropdownMenu<Object> menu : visibleDropdownMenus) {
|
} else {
|
||||||
menu.mouseReleased(button);
|
for (DropdownMenu<Object> menu : visibleDropdownMenus) {
|
||||||
if (menu.isOpen()) {
|
menu.mouseReleased(button);
|
||||||
return true;
|
if (menu.isOpen()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user