ScrolledEvent

An interface that holds scrolled event arguments.

Props

The following table outlines the props for the ScrolledEvent:

NameTypeDefaultDescription
distanceY
number
-

Specifies the distance from the scrollbar to the top and bottom ends.

originalEvent
UIEvent<HTMLDivElement>
-

Specifies the default scroll event arguments.

scrollDirection
-

Specifies the direction “Top” or “Bottom” in which the scrolling occurs.