Reference home > @af-utils/virtual-core > VirtualScroller > scrollToOffset
VirtualScroller.scrollToOffset() method
Scroll to pixel offset
Signature:
scrollToOffset(offset: number, smooth?: boolean): void;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
offset |
number |
offset to scroll to |
|
smooth |
boolean |
(Optional) should smooth scroll be used |
Returns
void