react-sortable-hoc
react-sortable-hoc copied to clipboard
Cannot manually scroll while dragging
When you're dragging an item, you cannot scroll the container using touchpad/mousewheel scrolling.
I was able to get this to work by returning the scrollable container in getContainer
. The documentation should reflect the fact that getContainer
is required in order for scroll to be properly handled.
Even better: is there a way this can be taken care of automatically?
Can you publish some code here ? This will be helpful for us
I found the method to do it
just like this <SortableList getContainer={() => document.getElementById('setting-right-panel')} />
@ qwlong Thanks. It works for me..
Just set useWindowAsScrollContainer={true}
for the <SortableList />
Can you publish some code here ? This will be helpful for us
I found the method to do it
just like this <SortableList getContainer={() => document.getElementById('setting-right-panel')} />
What is this id that it is trying to reference?...is it something hoc adds to its container? Whats going on here?