Skip to content
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

Datagrid: Do not prevent page scroll if we are not actually scrolling the grid #446

Merged

Conversation

martinRenou
Copy link
Member

The Datagrid was always preventing the propagation of the wheel event, preventing the scrolling of the page when using the wheel on top of a grid that does not need scrolling. This PR fixes it by only stopping the propagation if the grid actually needs scrolling.

cc. @ibdafna

scrolling.mp4

@martinRenou martinRenou added the bug Something isn't working label Oct 20, 2022
Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @martinRenou

@fcollonval fcollonval merged commit 15fb5d1 into jupyterlab:main Oct 26, 2022
@martinRenou martinRenou deleted the datagrid_do_not_prevent_scroll branch October 26, 2022 12:10
@ibdafna
Copy link
Member

ibdafna commented Nov 1, 2022

@fcollonval I think this change is missing from yesterday's release?

@fcollonval
Copy link
Member

@ibdafna Monday release was targeting 1.x not 2.x. Is this PR for 1.x too? As I did not follow closely the changes may for Lumino 2 on the datagrid and the milestone was not set I did not backport it.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants