Description
Steps to reproduce
Steps:
1. Use DataGridPro with horizontal scrolling and several columns.
2. Set pinnedColumns.left with 2–3 columns (e.g., checkboxSelection, phrase, frequency).
3. Scroll horizontally so that only the right-side columns are visible.
4. Try dragging a rightmost column to the left edge of the grid.
5. Observe: the grid does not scroll left automatically.
Current behavior
Describe the bug
When using pinnedColumns.left in DataGridPro, columns can be scrolled into view and reordered to the right, but auto-scroll to the left does not work during drag-and-drop of columns.
If I try to drag a column from the rightmost visible part of the grid toward the left edge — and there are pinned columns on the left — the grid does not scroll left automatically. This prevents placing a column before the currently visible area.
Expected behavior
Expected behavior
The grid should auto-scroll left when dragging a column near the left edge — same as it works when dragging toward the right edge.
Context
Additional context
This seems related to how drag-and-drop zones are handled when pinned columns are present. Since the pinned columns occupy the leftmost space, the drag area doesn’t activate auto-scroll.
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
• @mui/x-data-grid-premium: 6.19.11
• @mui/x-data-grid-pro: 6.20.4
• react: 18
• Browser: Chrome
Search keywords: DataGrid pinnedColumns drag scroll