React-sortable-hoc: Cannot manually scroll while dragging

Created on 14 Mar 2018  路  4Comments  路  Source: clauderic/react-sortable-hoc

When you're dragging an item, you cannot scroll the container using touchpad/mousewheel scrolling.

Most helpful comment

Can you publish some code here ? This will be helpful for us

I found the method to do it

just like this
getContainer={() => document.getElementById('setting-right-panel')}
/>

All 4 comments

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
getContainer={() => document.getElementById('setting-right-panel')}
/>

@ qwlong Thanks. It works for me..

Just set useWindowAsScrollContainer={true} for the <SortableList />

Was this page helpful?
0 / 5 - 0 ratings