scrollByDistance(distance, animationDuration?) â
scrollByDistance
scroll the specified distance.
Reference â
typescript
(distance: number, animationDuration?: number) => void
Parameters â
distance
Scroll distanceanimationDuration
Animation duration. If it is less than or equal to 0, there is no animation.
Returns â
scrollByDistance
returns undefined
.