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

[2.3.0 and 3.0.1] ion-scroll on iOS (WkWebView) not scrollable #11134

Closed
peterpeterparker opened this issue Apr 8, 2017 · 5 comments
Closed
Assignees

Comments

@peterpeterparker
Copy link
Contributor

peterpeterparker commented Apr 8, 2017

Ionic version: (check one with "x")
[ ] 1.x
[X ] 2.x
[ X] 3.x

I'm submitting a ... (check one with "x")
[ X] bug report

Current behavior:
Scrolling in an ion-scroll on iOS (WkWebView) doesn't work respectively ion-scroll looks frozen / can't be scrolled

Related issues:

#10938

#10936

Notes:

I use WkWebView.

I use to solve that issue in Ionic 2.3.0 and 3.0.0-beta by enabling the enableScrollListener() on the content by myself but this method doesn't exists anymore in Ionic 3.0.1 aka I use to solve that issue like following:

ionViewDidEnter() {
   content.enableScrollListener();
}

Expected behavior:

A fix for the ion-scroll scrolling or a redo of the method content.enableScrollListener()

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Your system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.3.1
ios-deploy version: 1.9.0
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v7.2.1
Xcode version: Xcode 8.3 Build version 8E162

@peterpeterparker peterpeterparker changed the title [>2.3.0] Scrolling in an ion-scroll on iOS (WkWebView) still doesn't work [2.3.0 and 3.0.1] Scrolling in an ion-scroll on iOS (WkWebView) still doesn't work Apr 8, 2017
@manucorporat
Copy link
Contributor

manucorporat commented Apr 8, 2017

@peterpeterparker what does "Scrolling in an ion-scroll on iOS (WkWebView) still doesn't work" mean? it does not scroll? or the scroll events are not being dispatched?

@jgw96 jgw96 added the v3 label Apr 8, 2017
@peterpeterparker peterpeterparker changed the title [2.3.0 and 3.0.1] Scrolling in an ion-scroll on iOS (WkWebView) still doesn't work [2.3.0 and 3.0.1] ion-scroll on iOS (WkWebView) still don't scrollable Apr 9, 2017
@peterpeterparker peterpeterparker changed the title [2.3.0 and 3.0.1] ion-scroll on iOS (WkWebView) still don't scrollable [2.3.0 and 3.0.1] ion-scroll on iOS (WkWebView) not scrollable Apr 9, 2017
@peterpeterparker
Copy link
Contributor Author

peterpeterparker commented Apr 9, 2017

@manucorporat with "scrolling doesn't work" I meant that the ion-scroll can't be scrolled, like "frozen".

something like following works fine with ionic serve or on a android phone but doesn't on iOS

<ion-scroll scrollY="true">
     <ion-list padding>
           <ion-item>
               <p>1</p>
           </ion-item>
          ....
           <ion-item>
               <p>9999</p>
           </ion-item>
     </ion-list>
 </ion-scroll>

Update: Sometimes works in pages, 100%, at least in my case, of the time doesn't work when used in modals

@peterpeterparker
Copy link
Contributor Author

Even if I meet the error "only" after having upgraded to Ionic 3 and nothing on my app side, it seems that the bug should be on me. I built another minimal app and it seems to work, the ion-scroll is scrollable on ios. Therefore I close this issue and only if needed gonna open a new one.

@peterpeterparker
Copy link
Contributor Author

Found the problem. After upgrading to Ionic 3, at least in my case, the swipe event on an ion-list in an ion-scroll freeze my scroll.

<ion-scroll scrollY="true">
 <ion-list padding (swipe)="someThing($event)"> <!-- There, swipe, removing it make my ion-scroll scrollable again -->
       <ion-item>
           <p>1</p>
       </ion-item>
      ....
       <ion-item>
           <p>9999</p>
       </ion-item>
     </ion-list>
  </ion-scroll>

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 2018

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants