InfinityAxis

This class manages a single axis for the InfinityScroller.

Configs

4
drift: Number

The delta between a logical scroll position and physical scroll position. In other words, adding the drift to a logical scroll position, produces the corresponding physical scroll position.

The owning InfinityScroller for this axis.

pos: Number

The logical scroll position.

range: Number[]

The logical scroll range as a two element array containing the range's lower bound and upper bound, respectively.

Functions

1

Returns the physical scroll position for the given logical scroll position. Valid physical scroll positions are not negative. This method returns NaN for logical scroll positions that cannot be converted to a valid, physical scroll position.

ParameterTypeDescription
logicalNumber
Returns: Number