Is it possible to provide a prop to control a scroll while dragging?
aslanalyiev opened this issue · comments
Is your feature request related to a problem? Please describe.
For example, if I have 100+ items inside a container but am able to see only the first 20(for example) I must reach the bottom of the last item while dragging to make the scroll work
Describe the solution you'd like
I want that scroll would de configurable and would not depend on the root component. For example, if I'm starting to drag an item from the center(visible center) a tree should understand that it should be scrolled up or bottom. Instead of waiting until I reach the border of the top or bottom of the root component. The root element bounds may not always be visible and this creates problems :(
@aslanalyiev
Would the following examples be helpful?
(Open Folder1 and try it.)
https://codesandbox.io/s/scroll-control-413jp0?file=/src/App.tsx
Hey, thank you a lot