Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@Norserium Norserium released this 28 Feb 16:26
· 18 commits to next since this release

The source was rewritten in Typescript completely.

Breaking changes

Add the buttons property

This prop is used to determine the mouse buttons that will activate the scroll on drag. The default value is [0], i.e. scroll on drag is activated by left mouse button only.

Remove the runtime type checking

It's recommended to use Typescript for type checking now.

Add the ScrollEvent to onScroll, onStartScroll, onEndScroll params.

It's the only argument of this functions now:

{
    external: boolean;
}

The external property marks if scrolling was produced outside the container, for example, programatically.