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

AutoScroll scrollSensitivity #198

Open
iDevJan opened this issue Jan 4, 2021 · 1 comment
Open

AutoScroll scrollSensitivity #198

iDevJan opened this issue Jan 4, 2021 · 1 comment

Comments

@iDevJan
Copy link

iDevJan commented Jan 4, 2021

Hello, is it possible to set the value for scrollSensitivity in AutoScroll plugin, like in a docs of offical library?

https://github.com/SortableJS/Sortable/tree/master/plugins/AutoScroll

@iannerney
Copy link

iannerney commented Jul 17, 2024

I'm having a related issue where I'm unable to set the AutoScroll scrollSensitivity value. I see the scrollSensitivity prop can be set on the ReactSortable component, but it does not seem to be having any impact on the end UI.

Here are the props I've set, based on the Sortable documentation:

<ReactSortable 
  list={state} 
  setList={setState} 
  scroll={true}
  forceFallback={true}
  forceAutoScrollFallback={true} // seems like this prop may be unnecessary, as forceFallback is set to `true`
  scrollSensitivity={150}
 >
    {content}
</ReactSortable>

Any insight into how to set the scrollSensitivity through this library would be greatly appreciated!

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