Constants that define whether a container that supports scrolling enables scrolling or not.

Available since

1.0.0

.

Variables

@:value(cast "auto")@:enum@:implinlineread onlyAUTO:ScrollPolicy = "auto"

The scroller may scroll if the content is larger than the view port's bounds. If the interaction mode is touch, the elastic edges will only be active if the maximum scroll position is greater than the minimum scroll position. Similarly, if the scroll bar display mode is fixed, the scroll bar will only be visible when the maximum scroll position is greater than the minimum scroll position.

Available since

1.0.0

.

@:value(cast "off")@:enum@:implinlineread onlyOFF:ScrollPolicy = "off"

The scroller does not scroll at all, even if the content is larger than the view port's bounds. The scroll bar will never be visible.

Available since

1.0.0

.

@:value(cast "on")@:enum@:implinlineread onlyON:ScrollPolicy = "on"

The container will always scroll. If the interaction mode is touch, elastic edges will always be active, even when the maximum scroll position is not greater than the minimum scroll position. If the scroll bar display mode is fixed, the scroll bar will always be visible.

Available since

1.0.0

.