Skip to content
Version 2.32.0
↓ Get the launcher

VariableListMath.MaxScroll method

The maximum scroll offset: how far the content can move up before its bottom aligns with the viewport bottom. 0 when the content is shorter than the viewport (nothing to scroll). Drives both the stick-to-bottom pin and the “is the user currently at the bottom?” test.

public static float MaxScroll(float totalHeight, float viewportHeight)