-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[data grid] Scrolling with scrollbar jumps back to a previous position when getRowHeight={() => 'auto'}
is used
#14802
Comments
Hey @annawatson-wk ... I can confirm this bug and it indeed seems like the virtualization is at fault here. The scrolling position is correct, however the scrollbar will jump back to a previous position once you stop scrolling. This can be easily reproduced by quickly scrolling and keeping the scrollbar clicked when stopping the scroll movement. Screen.Recording.2024-10-02.at.16.35.33.movcc @romgrk |
getRowHeight={() => 'auto'}
is used
getRowHeight={() => 'auto'}
is used
I just went back to change |
getRowHeight={() => 'auto'}
is used
Investigate #14808 at the same time. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @annawatson-wk How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: https://stackblitz.com/edit/react-sux3md?file=Demo.tsx
Steps:
Current behavior
The row you're viewing when you release the scrollbar aren't the rows you see when you release the scrollbar. We don't see this behavior for a smaller number of rows where virtualization of rows doesn't come into play.
Expected behavior
The row you're viewing when you release the scrollbar are the rows you see when you release the scrollbar.
Context
We had a customer report this jumping behavior when they scroll using the scrollbar. The seems like this might be related to virtualization on the grid rows then those rows adjusting their size due to rowHeight auto. This was seen in version 6 and version 7 of mui-x. We're really looking for a way that we can make this virtualization/rowHeight behavior seem less clunky.
Your environment
npx @mui/envinfo
Search keywords: scrollbar data grid jumping pro premium rowHeight
Order ID: 82849
The text was updated successfully, but these errors were encountered: