option menu: attempt to fix funky navigation bar when aggressively hovering

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

View File

@ -641,6 +641,7 @@ public class OptionsOverlay extends OverlayOpsuState {
} else if (navHoverTime > 0) { } else if (navHoverTime > 0) {
navHoverTime -= delta; navHoverTime -= delta;
} }
navHoverTime = Utils.clamp(navHoverTime, 0, 600);
if (!scrollPositionChanged && (mouseX - prevMouseX == 0 && mouseY - prevMouseY == 0)) { if (!scrollPositionChanged && (mouseX - prevMouseX == 0 && mouseY - prevMouseY == 0)) {
updateIndicatorAlpha(); updateIndicatorAlpha();