Column resizing on mobile does not work correctly and width scales inversely #4417
Closed
2 tasks done
Labels
bug 馃悰
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
plan: Pro
Impact at least one Pro user
Duplicates
Latest version
Current behavior 馃槸
Column resizing on mobile use touch input does not work correctly and width scales inversely.
Expected behavior 馃
Column resizing on mobile using touch input should work the same as using the mouse pointer.
Steps to reproduce 馃暪
Steps:
Context 馃敠
The root cause is that columnSeparator inner svg captures the touch event instead of the columnSeparator div, getSeparatorSide doesn't match the
columnSeparator--sideRight
grid class as the element is the svg instead ofthe div,separatorSide
is set to'left'
, and computeNewWidth adds the wrong width increment toinitialOffsetToSeparator
.I have resolved this for now by disabling pointer events on the svg
using the
sx
prop onDataGrid
.History of other issues relating to column resizing on mobile (none that describe the current issue)
Your environment 馃寧
`npx @mui/envinfo`
Order ID 馃挸 (optional)
#41445
The text was updated successfully, but these errors were encountered: