Reference home > @af-utils/virtual-core > VirtualScroller > updateScrollerOffset
VirtualScroller.updateScrollerOffset() method
Recalculates the offset between scroller element and container element.
Signature:
Returns
void
Remarks
By default debounced at 256
milliseconds and called automatically when:
-
setScroller was called;
-
setContainer was called;
-
scroller element was resized.
Normally this is enough, needed only if something else would trigger this offset change.