Reference home > @af-utils/virtual-react > useScroller
useScroller() function
React hook. Synchronizes scroller with model.
Signature:
Parameters
Parameter |
Type |
Description |
---|---|---|
model | ||
scroller |
VirtualScrollerScrollElement | null |
Returns
void
Remarks
Should be used in window-scroll cases, otherwise ref={el => model.setScroller( el )}
is preferrable.