fix slider option tooltip staying visible when releasing mouse button

and mouse is not hovering the option anymore
This commit is contained in:
yugecin 2018-08-27 22:02:44 +02:00
parent 7fad87cf45
commit 7c0ace50cc

View File

@ -835,9 +835,12 @@ public class OptionsOverlay implements ResolutionChangedListener {
wasPressed = false;
selectedOption = null;
if (isAdjustingSlider && listener != null) {
if (isAdjustingSlider) {
if (listener != null) {
listener.onSaveOption(hoverOption);
}
updateHoverOption(x, y);
}
isAdjustingSlider = false;
sliderOptionLength = 0;