-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: ion-content is still scrollable while ion-menu is opening. #21193
Comments
Confirmed here as well, on all platforms/modes (iOS/Android/Web/etc). This happens easily and consistently and results in a VERY slow/jittery interaction for the user. |
Are there any updates? |
Still an issue. Seems to have gotten worse specifically in the latest chrome releases. Almost impossible to swipe open any menu without extreme lag / jank. It's almost to the point where I'd consider disabling swipe-to-open because it's just a really bad impression. Users have been complaining our apps are slow when in reality it's just the menu opening :/ Not sure how to proceed with this as I believe it's a result of the event being captured by multiple elements. |
I stumbled on this, haven't had a chance to dig in too deep yet, but could be useful for finding a solution/workaround? |
Possibly related: w3c/pointerevents#303 |
Eventually it is possible to disable the scroll feature of IonContent as soon as the menu gets opened. |
I will create create a demo of my solution ASAP. |
Awesome, thank you! I actually think I just came up with a solution as well. Does yours look something like this? @liamdebeasi This seems to cancel the touchmove event on IonContent scrollable element.
|
@lincolnthree That looks very good, I've just started to create something. Are you able to create a PR? |
@BerkeAras I probably can tomorrow. Right now I've done this in a directive that attaches to every [ion-content] element automatically. What was your solution? |
I dont have a solution. I just created a new project, but I dont have something yet. |
Ah :) Here's something that might help:
|
There may be a simpler way, but that's what I did in ~10 minutes. |
I also noticed it helps to do this when the menu is being closed, as well. |
I've just created a very basic version of @lincolnthree's version. This is useful for especially No-Framework Users. https://github.com/BerkeAras/Ionic-5-Menu-Swipe-Issue |
@liamdebeasi Not sure my tag came through since I edited it in. Just making sure you saw it, since I believe we have a viable workaround/fix for this if you want to incorporate it. FYI. This seems to work best when it is ALSO called on menu So something like this:
|
As an additional aside. It seems to improve/reduce menu jitter if the |
@liamdebeasi Facepalm... 🤦 I think the simplest fix is actually just to apply |
That said, I'm going to get back to my "day job" and let the dust settle on this one for a bit. |
Hi everyone, Does this issue still reproduce in the latest version of Ionic 6? |
@liamdebeasi I will try with version 7 and let you know. Unfortunately I do not have an active build with Ionic 6 anymore :) |
Yes, this is still an issue in version 7: ScreenFlow.mp4 |
Uhhh.. here's a link. Not sure what happened to that video: https://photos.app.goo.gl/xubuaC4PkMKf9syX6 |
Here's a dev build with a proposed fix if you are interested in testing: v6: v7: |
Looks good @liamdebeasi -- And nice fix! Thanks for doing this :) |
Thanks for the issue. This has been resolved via #26976, and a fix will be available in an upcoming release of Ionic Framework. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic version:
[x] 4.x
[x] 5.x
Current behavior:
ion-content
is still scrollable whileion-menu
is opening. This is happens only with cordova and capacitor, not in the browser.Expected behavior:
ion-content
should not be scrollable.Steps to reproduce:
While opening a
ion-menu
, swipe finger up and down.Other information:
Here you can see it: https://www.youtube.com/watch?v=K-ImPdKFoiA
The text was updated successfully, but these errors were encountered: