ngx-dnd
ngx-dnd copied to clipboard
Browser auto scroll does not work
I'm submitting a ... (check one with "x")
[ X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Sorry, we will not be able to answer every support request. Please consider other venues for support requests
Current behavior Lets say you have a large data set, that is is bigger than one screen. If you drag an item, and move it to the bottom of the page, the page does not auto scroll down, like nearly every other drag library. However, if you start dragging something, you can use a mouse wheel to scroll the page down to drop the item where you desire. I am not sure if this is what has been mentioned in #26 but it doesn't seem clear that this is the exact problem/cause of the issue.
Expected behavior Moving a draggable item to the edge of a screen space, should auto move the screen in the direction in which you are dragging to show and expand the area you want to drag to.
Reproduction of the problem https://stackblitz.com/edit/angular-llmtxt
What is the motivation / use case for changing the behavior? Improved functionality with large UI's where items need to be dragged to a area of the screen that may not be visible in the current view.
- ngx-dnd version: 4.0.2
- Angular version: 6.0.1
This is not something currently supported by dragula, when we replace (it is planned) we look into this.