tajo / react-movable

🔀 Drag and drop for your React lists and tables. Accessible. Tiny.
https://react-movable.pages.dev
MIT License
1.55k stars 51 forks source link

Correct usage of scrolling in flex/grid container? #17

Open molzahn-sio opened 5 years ago

molzahn-sio commented 5 years ago

I'm having trouble to get scrolling within nested containers to work properly and I hope that you can point me in the right direction.

Description:

A simplified example can be found here: https://codesandbox.io/s/snowy-glitter-mwibr (With explicit size for display of the main container)

Question: Given these circumstances I seem to be unable to get scrolling to work:

Any help regarding the correct practice would be much appreciated as I really enjoy this simple to use but effective package!

Thanks.

derianpt commented 4 years ago

@ralmo Did you ever get around to solving this? I'm facing the same problem

molzahn-sio commented 4 years ago

No, not really. A lot has changed and I didn't make use of movable containers at all since then (priorities have shifted).

dzsodzso63 commented 2 years ago

I have the same problem. I think the best solution would be to have a prop where we explicitly can set the scrolling container element?

mmukhin commented 2 years ago

I was facing the same issue, and I put the "overflow" styles on the renderList={<div style={{overflow_styles_go_here}}/>} instead of putting the styles on the parent element wrapping the <List/>. In my local env its working, but its a little too "scroll happy" :)