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

Provide option to disable auto-scrolling #91

Open
xionluhnis opened this issue Dec 20, 2022 · 1 comment
Open

Provide option to disable auto-scrolling #91

xionluhnis opened this issue Dec 20, 2022 · 1 comment

Comments

@xionluhnis
Copy link

Thank you so much for creating such minimal version of a drag-n-drop list for react.

Would it be possible to have a parameter to disable the auto-scrolling behavior?

Context

There are issues with smaller component heights, but also small "draggable" items whose drag-n-drop is not stable enough to be used in some scenarios without a detrimental experience.

Related

Different perspective

I understand that auto-scroll is a nice feature to have -- if it works.
But since it doesn't always work, being able to disable it would be great.

My use case scenarios don't involve moving items very far in the list even though the list can be long. This suggests that I don't need auto-scroll, yet having it enabled right now makes the drag-n-drop hazardous.

I need the scrolling to be possible, but not done automatically when dragging items.

Using transitionDuration={0} helps in making the whole behavior more reasonable, but it's still not sufficient in some scenarios where a small element ends up being scrolled down very far in a short period of time.

@tajo
Copy link
Owner

tajo commented Dec 26, 2022

If anyone wants to add & document it, I'm fine with an opt-out.

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

2 participants