UNPKG

seng-scroll-tracker

Version:

Class that keeps track of the vertical scroll position of an element.

10 lines (9 loc) 213 B
/** * Enum for side of the ScrollTracker. START means top or left if the axis is Y or X, respectively. * END stands for bottom or right. */ declare enum Side { START = 0, END = 1 } export default Side;