React-grid-layout: Can't scroll page on mobie view.

Created on 22 Jan 2020  路  6Comments  路  Source: STRML/react-grid-layout

The problem is - I can drag blocks on special button (drag-handle). And i can scroll page by clicking on empty space. BUT i can't scroll page by clicking on blocks.

Demonstration: https://imgur.com/vusO6OH

You can try this with mobile view in chrome https://chk75.csb.app/

codesandbox: https://codesandbox.io/s/adoring-chebyshev-chk75

p.s.
isDraggable={false} on ResponsiveReactGridLayout will not fix this problem for me

stale

Most helpful comment

This seems to happen because of touch-action: none; on .react-grid-item class.

I fixed it by adding the following css

.react-grid-item {
  touch-action: auto !important;
}

This may not be the solution for you if you use the drag and drop feature

All 6 comments

I am also having this problem in gridlayout

Just add the static classname in the gridlayout div, make isDraggable flag to false

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days

I was using isDraggable={false} on mobile view to prevent this bug. But in 0.18+ it doesn't work anymore.
I mean, i cannot scroll on mobile at all. 馃槙

This seems to happen because of touch-action: none; on .react-grid-item class.

I fixed it by adding the following css

.react-grid-item {
  touch-action: auto !important;
}

This may not be the solution for you if you use the drag and drop feature

.react-grid-item {
touch-action: auto !important;
}

This solved the issue for me. Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

victor-unsw picture victor-unsw  路  3Comments

Francismb picture Francismb  路  4Comments

gerahimanshu picture gerahimanshu  路  4Comments

moritzschaefer picture moritzschaefer  路  3Comments

dphaener picture dphaener  路  3Comments