question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ion-content is still scrollable while ion-menu is opening.

See original GitHub issue

Bug Report

Ionic version:

[x] 4.x [x] 5.x

Current behavior:

ion-content is still scrollable while ion-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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:19

github_iconTop GitHub Comments

2reactions
lincolnthreecommented, May 4, 2020

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.

1reaction
lincolnthreecommented, Sep 3, 2020

@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 ionWillOpen and ionWillClose, as menus may also have content inside them that can scroll when closing.

So something like this:

  _menuWillClose(side: string) {
    IonContentStyleDirective.cancelContentScrollEvents();
  }
  _menuDidClose(side: string) {
    IonContentStyleDirective.activateContentScrollEvents();
  }
  _menuWillOpen(side: string) {
    IonContentStyleDirective.cancelContentScrollEvents();
  }
  _menuDidOpen(side: string) {
    IonContentStyleDirective.activateContentScrollEvents();
  }
Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: ion-content is still scrollable while ion-menu is opening ...
Current behavior: ion-content is still scrollable while ion-menu is opening. This is happens only with cordova and capacitor, not in the browser ...
Read more >
ion-content - Ionic Framework
ion-content provides an easy to use content area with useful methods to control the scrollable area. Learn more about this CSS component for...
Read more >
Ionic 4 *ngFor does not scroll properly in iOS - Stack Overflow
It's a bug: https://github.com/ionic-team/ionic/issues/16910. Remove ion-content and add this to your component's scss: .backdrop-no-scroll ...
Read more >
Making a Menu Work in Ionic 4 - Damir's Corner
<ion-app> <ion-menu side="start" menuId="first"> <ion-header> ... the error in the browser console was gone and the menu opened when I ...
Read more >
The 9 Most Common Mistakes That Ionic Developers Make
However, over time, the best practices and tooling for Ionic have not ... Native Scrolling on any page using overflow-scroll directive on any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found