Add support scrolling of page during drag and drop (DnD) when not supported by the browser.
npm install dnd-page-scrollhtml
`This is a UMD module.
How it works
The library creates invisible elements top and bottom of the viewport.
These bind the dragover event to scroll the page.Options
- height: Height of the invisible elements. Defaults to '50px'.
- scrollBy: Scoll by x pixels. Defaults to 50.
- delay: Scroll every x milliseconds. Defaults to 25.
- topId: Id attribute of the top invisible element. Defaults to 'dnd-page-scroll-top'.
- bottomId: Id attribute of the bottom invisible element. Defaults to 'dnd-page-scroll-bottom'.
- namespace: A string appended to the above ids. Defaults to an empty string. Required for having multiple plugin instances.
- node: The scrollable area. Defaults to document.body.
- listenGlobally: When set to false, only listen to drag events within node. Useful when having multiple plugin instances. Defaults to true`.License: MIT