react-beautiful-dnd icon indicating copy to clipboard operation
react-beautiful-dnd copied to clipboard

Dragging items horizontally across multiple columns doesn't scroll the screen if parent container is overflow: hidden and columns are scrollable

Open gregoryforel opened this issue 4 years ago • 18 comments

I've implemented a simple Kanban, with scrollable columns (overflow-y: auto)

I need to be able to drop this Kanban component inside container divs, one of those div has overflow: hidden set. When used this way, dragging items horizontally across multiple columns does not scroll the screen anymore.

I made a codesandbox to illustrate the issue.

When I remove overflow-y: auto;from .taskList inside styles.module.less, it works, even though the horizontal scrolling is much slower than I expect.

What am I doing wrong?

gregoryforel avatar Mar 12 '20 23:03 gregoryforel

@alexreardon is this due to not supporting n-level nested containers? Thanks

gregoryforel avatar Mar 13 '20 08:03 gregoryforel

Is the issue Solved?? As I wanted to know the solution of this

shariquekhan1997 avatar Mar 13 '20 09:03 shariquekhan1997

Is the issue Solved?? As I wanted to know the solution of this

Unfortunately not.

gregoryforel avatar Mar 13 '20 10:03 gregoryforel

Then why did you close? @gregoryforel

shariquekhan1997 avatar Mar 16 '20 12:03 shariquekhan1997

Having the same issue. Why is this closed? Should I create a new ticket?

nick-tw avatar Sep 11 '20 04:09 nick-tw

I abandoned this library a while ago. It's a great library but falls short for this use case, and tbh, most do. The only one I found that worked for me is this react-smooth-dnd. But even this one, I had to use a specific branch, check this out. Here's his branch

Use it like this when using the lib, in all the Containers:

import { Container } from '@richardrout/react-smooth-dnd'

return <Container
                disableScrollOverlapDetection={true}
                ...>
                 // Your lists
            </Container>



gregoryforel avatar Sep 11 '20 07:09 gregoryforel

Hey guys, any update on this one?

cmacdonnacha avatar Nov 03 '20 19:11 cmacdonnacha

Same problem :((

olegcherr avatar Jul 04 '21 12:07 olegcherr

I am also facing the same issue.

Same problem...

malburo avatar Aug 25 '21 22:08 malburo

Same problem D:

MarianoTroncoso avatar Sep 06 '21 13:09 MarianoTroncoso

The Same...😔

RayZik avatar Sep 29 '21 10:09 RayZik

Same problem, but this example works fine, am I missing something?

https://user-images.githubusercontent.com/20528643/221157539-b0b81887-34eb-45eb-871b-427d66625fad.mp4

fredmanxu avatar Feb 24 '23 10:02 fredmanxu

same problem :(

hoainamcr avatar Mar 06 '23 10:03 hoainamcr

Same problem, but this example works fine, am I missing something?

Storybook.-.Google.Chrome.mp4

is there a way to get code of it

niranjan821 avatar May 25 '23 11:05 niranjan821

Same problem, but this example works fine, am I missing something? Storybook.-.Google.Chrome.mp4

is there a way to get code of it

i found this: https://codesandbox.io/s/react-beautiful-dnd-board-base-0dv9b

MarcosSiega avatar May 29 '23 13:05 MarcosSiega

I was able fix it in mine. You have to allow html or browser to take care of scrolling or you should not have overflow on parent. then the autoscroll will work.

niranjan821 avatar May 29 '23 15:05 niranjan821

I was able fix it in mine. You have to allow html or browser to take care of scrolling or you should not have overflow on parent. then the autoscroll will work.

How?

UsamaEjaz0 avatar Dec 10 '23 23:12 UsamaEjaz0