List Item Scroll By

Is their a way to detect when an item or multiple items have been scrolled to or by?

get the scrollposition of the item while scrolling --> if it is passed the visible part of the scroll container - it has scrolled by. contains a function rectContains. You can pass x,y of an element and a rectangle wether to check if it is in or out.

1 Like