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,6 +778,7 @@ public class OptionsOverlay extends OverlayOpsuState {
isAdjustingSlider = false; isAdjustingSlider = false;
sliderOptionLength = 0; sliderOptionLength = 0;
if (x > navWidth) {
if (openDropdownMenu != null) { if (openDropdownMenu != null) {
openDropdownMenu.mouseReleased(button); openDropdownMenu.mouseReleased(button);
updateHoverOption(x, y); updateHoverOption(x, y);
@ -790,6 +791,7 @@ public class OptionsOverlay extends OverlayOpsuState {
} }
} }
} }
}
scrollHandler.released(); scrollHandler.released();