[DataGrid] Add support for Column resizing on mobile #416
Labels
component: data grid
This is the name of the generic UI component, not the React module!
new feature
New feature or request
Current Behavior 😯
The column resizing isn't working with a touch pointer. Most frequently, touch pointers can be found on mobile devices but that's not the only place. They can be found too on desktop, e.g. Windows Surface.
Expected Behavior 🤔
Column resizing works with a touch pointer.
Steps to Reproduce 🕹
Steps:
Context 🔦
Resizing is implemented with a mouse move handler.
https://github.com/mui-org/material-ui-x/blob/05ccbe31f6c5954e50399262f1afffe52006aca0/packages/grid/_modules_/grid/hooks/features/useColumnResize.tsx#L44
However, with the latest browser proposal: mui/material-ui#22814, we can drop all the mouse and touch handlers, replacing them with the PointerEvent API. Browser support: https://caniuse.com/mdn-api_pointerevent.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: