Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

autoScroll

Karl edited this page Nov 9, 2017 · 21 revisions

Type Object

Enables auto-scrolling when dragging in an scrollable container.

The option has two properties:

  • offset - the number of pixels from the edge of the container before auto-scrolling is started. Defaults to 50
  • increment - the amount in pixels to scroll the container. Defaults to 30.
const selectable = new Selectable({
    autoScroll: {
        offset: 50,
        increment: 30,
    }
});

Clone this wiki locally