mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
decrease scroller bounds to be more precise.
This commit is contained in:
1 parent
6deaae350e
commit
7632e543c8
1 file changed
+1
-1
@@ -219,7 +219,7 @@ public abstract class LocalSettingsTab(ConfigFile config)
|
||||
}
|
||||
|
||||
var estimatedScrollRange = (Settings.Count + Buttons.Count) * 0.5f - 5f;
|
||||
var layoutScrollRange = contentOffset - 5f;
|
||||
var layoutScrollRange = contentOffset - 4.75f;
|
||||
var scrollRange = Mathf.Max(0f, estimatedScrollRange, layoutScrollRange);
|
||||
Scroller.SetBounds(new FloatRange(0, scrollRange), new FloatRange(0, 0));
|
||||
Scroller.ScrollToTop();
|
||||
|
||||
Reference in new issue
Block a user