set max scrolling value to the bottom of the open list, if applicable

This commit is contained in:
yugecin 2017-01-29 14:10:46 +01:00
parent 60d1d8e3ee
commit e476ed5c62

View File

@ -321,6 +321,9 @@ public class OptionsOverlay extends OverlayOpsuState {
} }
} }
maxScrollOffset -= height * 2 / 3; maxScrollOffset -= height * 2 / 3;
if (isListOptionOpen) {
maxScrollOffset = Math.max(maxScrollOffset, listHeight);
}
if (maxScrollOffset < 0) { if (maxScrollOffset < 0) {
maxScrollOffset = 0; maxScrollOffset = 0;
} }