Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Auto scroll like react-beautiful-dnd #1940

Open
developerruhul opened this issue Oct 4, 2020 · 1 comment
Open

[feature] Auto scroll like react-beautiful-dnd #1940

developerruhul opened this issue Oct 4, 2020 · 1 comment

Comments

@developerruhul
Copy link

developerruhul commented Oct 4, 2020

Summary

  • What is the feature?

This is a beautiful library with so many features but there's one part of this library that is really really poorly handled and that is the auto-scroll. Currently, the auto-scroll feels like it barely works. Sometimes it lags when the container is fixed and has 100vh height or there's some margin between items etc(live codesandbox). I'm working on an app that needs a smooth scroll similar to how it works in react-beautiful-dnd. It starts scrolling slowly when you go close to the edge and it speeds up as you go even closer to the edge. It feels so natural.

Here's how we want it to work and then how sortablejs currently works

react-beautiful-dnd

react-beautiful-dnd-scroll

sortablejs

sortablejs-scroll

  • Why is having this feature important to you?

I moved from react-beautiful-dnd to sortablejs because it doesn't support a tree-like nested list. But the auto-scroll of sortablejs just isn't something we can deploy to users because it feels so buggy that it feels like it barely works and it makes the whole UX looks so bad. So I'm literally stuck like many users of sortablejs who submitted issues regarding the auto-scroll.

  • Who else will find having this feature helpful?

Literally everyone. This kind of smooth scroll is so natural that pretty much everyone wants it. I've seen so many issues in this repo about how auto-scroll isn't working, not responding to options etc. The auto-scroll indeed needs improvement.

here's a clean and simple codesandbox to test the scroll.

https://codesandbox.io/s/vanilla-sortablejs-scroll-test-fmch4

@developerruhul developerruhul changed the title [feature] Start scrolling slowly and as the item gets closer to the edge speed up. [feature] Auto scroll like react-beautiful-dnd Oct 4, 2020
@developerruhul
Copy link
Author

#1907 asks for a similar feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant