Skip to content

scrollByDistance(distance, animationDuration?)

scrollByDistance scroll the specified distance.

Reference

typescript
(distance: number, animationDuration?: number) => void

Parameters

  • distance Scroll distance
  • animationDuration Animation duration. If it is less than or equal to 0, there is no animation.

Returns

scrollByDistance returns undefined .

Usage

Basic usage