From e476ed5c626b2a703751497719a2cf58e185fd84 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 29 Jan 2017 14:10:46 +0100 Subject: [PATCH] set max scrolling value to the bottom of the open list, if applicable --- src/yugecin/opsudance/ui/OptionsOverlay.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/yugecin/opsudance/ui/OptionsOverlay.java b/src/yugecin/opsudance/ui/OptionsOverlay.java index b70378a8..6dc11a6a 100644 --- a/src/yugecin/opsudance/ui/OptionsOverlay.java +++ b/src/yugecin/opsudance/ui/OptionsOverlay.java @@ -321,6 +321,9 @@ public class OptionsOverlay extends OverlayOpsuState { } } maxScrollOffset -= height * 2 / 3; + if (isListOptionOpen) { + maxScrollOffset = Math.max(maxScrollOffset, listHeight); + } if (maxScrollOffset < 0) { maxScrollOffset = 0; }