Scroll Target Behavior Modifier

Define the scroll behavior of a scrollable layer.

Updated over a week ago

Overview

While a Scroll View layer automatically calculates where scroll gestures should end, you can customize where someone can scroll to with the Scroll Target Behavior modifier. You can set one of the following built-in scroll Behaviors: Paging and View Aligned.

Paging Behavior

The Paging Behavior moves Scroll View layers by exactly one screen width or height, depending on the scroll direction.

View Aligned Behavior

The View Aligned Behavior snaps between child layers within a Scroll View layer. By default, only a few layers are scrolled at a time, but you can change the Limit Scroll parameter to Never to remove the limit.

Did this answer your question?