SortableJS / react-sortablejs

React bindings for SortableJS
http://sortablejs.github.io/react-sortablejs/
MIT License
2.04k stars 210 forks source link

AutoScroll scrollSensitivity #198

Open iDevJan opened 3 years ago

iDevJan commented 3 years ago

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

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

iannerney commented 2 months ago

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!