option menu: fix dropdowns being clicked when clicking overlayed navigation button
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user