Private
_contentPrivate
_enablePrivate
_scrollPrivate
cancelPrivate
configPrivate
contentPrivate
contentPrivate
contentPrivate
deceleratePrivate
deceleratePrivate
dragPrivate
dragPrivate
elasticPrivate
elasticPrivate
enablePrivate
inertiaPrivate
isPrivate
isXOverflowPrivate
isYOverflowReadonly
onPrivate
onReadonly
onPrivate
onReadonly
onPrivate
onPrivate
scrollPrivate
scrollthe content length along the Y-axis
Sets the true length of the content in the case of pooling / other non-default use cases
the content position in local space
if the ScrollView will continue scrolling on release
Toggles if the ScrollView should continue scrolling on release
if this class is ready to be used, which means that content is set
what amount of the scroll area should always be occupied
Sets the amount of the scroll area should always be occupied
Private
applyPrivate
applyChecks if both inputted content edges are fully visible in the ScrollArea.
0 if not checking any x-axis edge, 1 for right edge, -1 for left edge.
0 if not checking any y-axis edge, 1 for top edge, -1 for bottom edge.
Private
convertPrivate
getPrivate
isReturns true if any edge of the given type is inside the scroll region, as long as the content is large enough in that dimension to be scrollable.
the type of edge to check for
Private
limitIf there is a edge of the given type inside the scroll area, instantly snap to the edge.
The type of edge to snap to.
Private
offsetRecomputes content and scroll area boundaries
Resets the content origin for the purpose of calculating scrollPercentage. Assumes that the ScrollView is currently at the top of content in the pooling use case.
Resets the inertia velocity in the case that the developer wants to stop physics upon certain events.
Scrolls content according to a drag vector, along the enabled axis
2D vector to move the content
Private
selectSets scroll content. Should be called only one time to initialize the content and binds to onStartEvent.
defines content boundaries
Snaps content to the selected edges
Struct that describes the selected edge as an EdgeSelector
Private
updatePrivate
update
Describes the scrolling logic between the content and the container