Scrollview will lay out a collection of renderables sequentially in the specified direction, and will allow you to scroll through them with mousewheel or touch events.
An object of configurable options.
The size of the area (in pixels) that Scrollview will display content in.
The size of the area (in pixels) that Scrollview will process renderables' associated calculations in.
Input resistance proportional to the velocity of the input. Controls the feel of the Scrollview instance at low velocities.
Input resistance proportional to the square of the velocity of the input. Affects Scrollview instance more prominently at high velocities.
A coefficient for resistance against after-touch momentum.
Sets the period on the spring that handles the physics associated with hitting the end of a scrollview.
Sets the damping on the spring that handles the physics associated with hitting the end of a scrollview.
A paginated scrollview will scroll through items discretely rather than continously.
Sets the period on the spring that handles the physics associated with pagination.
Sets the damping on the spring that handles the physics associated with pagination.
The threshold for determining the amount of velocity required to trigger pagination. The lower the threshold, the easier it is to scroll continuosly.
The threshold for momentum-based velocity pagination.
The highest scrolling speed you can reach.
Returns the index of the first visible renderable
goToPreviousPage paginates your Scrollview instance backwards by one item.
goToNextPage paginates your Scrollview instance forwards by one item.
Paginates the Scrollview to an absolute page index.
Returns the position associated with the Scrollview instance's current node (generally the node currently at the top).
Returns the absolute position associated with the Scrollview instance
Returns the offset associated with the Scrollview instance's current node (generally the node currently at the top).
Sets the position of the physics particle that controls Scrollview instance's "position"
Sets the offset of the physics particle that controls Scrollview instance's "position"
Returns the Scrollview instance's velocity.
Sets the Scrollview instance's velocity. Until affected by input or another call of setVelocity the Scrollview instance will scroll at the passed-in velocity.
Patches the Scrollview instance's options with the passed-in ones.
Sets the collection of renderables under the Scrollview instance's control, by setting its current node to the passed in ViewSequence. If you pass in an array, the Scrollview instance will set its node as a ViewSequence instantiated with the passed-in array.
Returns the width and the height of the Scrollview instance.
Generate a render spec from the contents of this component.