option menu: fix dropdowns being clicked when clicking overlayed navigation button

This commit is contained in:
yugecin 2017-05-28 18:44:16 +02:00
parent 7f37a51c48
commit 6d3336b7ea

View File

@ -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;
}
}
}
}