dnd-kit icon indicating copy to clipboard operation
dnd-kit copied to clipboard

Improve auto-scrolling to only activate after user-input

Open vassbence opened this issue 2 years ago • 1 comments

Hi!

First eval thank you for the awesome package, I really dig it and it helped me a ton already. I would like to report a bug.

I have an use case which is really similar to the features grid on the dnd-kit homepage. I encountered a weird bug where if an item is partially hidden on the screen and gets clicked (left click + hold but no mouse movement) then it gets stuck in a weird scrolling movement. First I thought it was something bad about my own code but I could reproduce it on the dnd-kit homepage itself.

Here is a video:

https://user-images.githubusercontent.com/49574140/150978676-b9b1ad46-f326-474d-abef-dfef60010124.mov

Let me know if I can help in any shape or form, would be really happy to do so!

Thanks!

vassbence avatar Jan 25 '22 12:01 vassbence

The item isn't stuck, what you're seeing is just the auto-scrolling functionality kicking in because your cursor is close to the edge of the screen.

I've renamed your issue to better reflect the change that I think would need to be done for this to be a bit more intuitive.

clauderic avatar Jan 26 '22 17:01 clauderic