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
fix(menu): main content is not scrollable while swiping #26976
Conversation
|
|
|
I'm not able to replicate the issue on the current |
|
It's easier to reproduce if you try it on an actual phone with touch capabilities rather than with touch simulation: #21193 (comment) I've found it easiest to repro on Chrome for Android if you try to swipe the menu open and then scroll in a circular motion like the video in the linked comment is doing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, just saw it. It does take a few tries haha. Looks good on the branch though.
|
Will test, thanks @liamdebeasi! |
|
Looks good here on V7. |


Pull request checklist
Please check if your PR fulfills the following requirements:
ionic-docsrepo, in a separate PR. See the contributing guide for details.npm run build) was run locally and any changes were pushednpm run lint) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue URL: resolves #21193
The
.menu-content-openclass prevents users from scrolling the content behind a menu when it is open:ionic-framework/core/src/css/core.scss
Line 266 in 118b6ba
However, it does not account for when users accidentally scroll the content while trying to drag the menu open because it is only added once the animation is complete. As a result, it is possible to scroll the content underneath the menu and have the menu gesture activate. This also causes the menu gesture performance to degrade significantly.
What is the new behavior?
.menu-content-openclass is added before the open animation starts, preventing any accidental scrolls.Does this introduce a breaking change?
Other information