Overview

The Scroll component scrolls the carousel to the arbitrary position without the Transition component. This component moves the carousel by requestAnimationFrame. The Drag component uses this in the drag free mode.

Methods

scroll()

scroll( position: number, duration?: number, snap?: boolean, callback?: AnyFunction ): void

Scrolls the carousel to the specified destination. Unlike Controller#scroll(), this method does not update active and previous indices.

Params

destination
duration
snap
callback

cancel()

cancel(): void

Cancels scrolling and emits the scrolled event.