The Scroll Gesture patch recognizes a scroll gesture and simulates inertial scrolling on a view. Upon recognizing that a scroll gesture has occurred, it will cancel all other interactions on the view and its subview (e.g. Recognizing when the user is trying to scroll a tappable button.)
The Scroll Gesture can be used for scrolling content that will not fit entirely on the screen or to let users drag the area of content that they want to display. The patch behaves like a Pan Interaction with bounds and inertial scroll upon release. Users can scroll with drag or flick gestures.
Content Size
The size of the scroll gesture content. The default value is -1 which grabs the content size of the connected view.
Bounds Size
The width and height that the content can scroll. The default value is -1 which grabs the bounds size from the parent view.
Paging
A boolean indicating whether the scroll view should page in the X/Y direction. When this is enabled, the scroll gesture will snap to page boundaries that are the size of the bounds size.
Reset
Resets the gesture.
Offset
The number of points used to offset the X/Y position output.
Gesture
The gesture connection port used to link the gesture to a view.
Position
The total amount of translation that has occurred during the scroll.
Dragging
A boolean value that represents whether the user has begun dragging the content.
Decelerating
A boolean value that represents whether the patch is currently decelerating.
Page
An index value that represents what page the scroll gesture is currently positioned at. Pages start from 0.