fix pressing back button on options overlay responding to mousepress instead of mouserelease
This commit is contained in:
@@ -429,9 +429,6 @@ public class OptionsOverlay extends OverlayOpsuState {
|
||||
}
|
||||
}
|
||||
|
||||
if (UI.getBackButton().contains(x, y)) {
|
||||
hide();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -476,10 +473,12 @@ public class OptionsOverlay extends OverlayOpsuState {
|
||||
tScrollOffset += tab.options.length * optionHeight;
|
||||
}
|
||||
|
||||
if (UI.getBackButton().contains(x, y) && listener != null) {
|
||||
listener.onLeaveOptionsMenu();
|
||||
if (UI.getBackButton().contains(x, y)){
|
||||
hide();
|
||||
if (listener != null) {
|
||||
listener.onLeaveOptionsMenu();
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user