-
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
ionScroll events not firing on 2.3.0 #10938
Comments
The same thing if you subscribe to an event from the code - the scrolling event does not fire!
|
You need to call |
@jjosef mvp of the day, your solution works! Except the doc which is not up-to-date, it's also "disturbing" that enableScrollListener is annotated as a private method in content.d.ts...
|
My instincts tell me this is a bug more than anything. Not sure why this method would be required before the listener is enabled. I'm too busy at the moment to look into it and submit a PR, but this was a quick fix.. |
It seems the code that was called in Adding the following in
|
It is still not working for me on ionic3 using iOS |
Wanted to share that I Got some advise from North McCormick on Slack to use wkwebview for the ion-infinte problem and it is working as a temporary workaround for that issue. Sadly it is not working for this scroll event issue on a new ionic app i crated from scratch to test this |
@manucorporat I tried this using iPhone SE with and without wkwebview on 2.3.0 and 3.0.0 and 3.1.1 |
If I understand correctly, @dmastag it looks like @manucorporat fixed the scroll for UIWebView 2 days ago there #10936 |
@peterpeterparker yeahh but on my test it only worked for ion infinite, and the onScroll was still not working |
@dmastag this is a known limitation of UIWebView, and it is been there forever, the only thing you can do is to enableJSScroll() conditionally, but native scrolling is much smoother. The best chance if you depend on scrolling events is to start using WKWebView, in fact we have plans to deprecate UI very soon. |
Ionic does not know "enableScrollListener" in "this.content.enableScrollListener()" |
Still not working in ionic 3.9 |
get the child ref using @ViewChild('scroll') scroll: any;
|
Try with something like this:
|
So any idea if this is going to be fixed? I don't get any event fired when using ionScroll like |
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. |
Ionic version: (check one with "x")
[ ] 1.x
[x ] 2.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
When adding an event binding for
ionScroll
onion-content
it is never fired.Expected behavior:
The Content component should fire scroll events when scrolled.
Steps to reproduce:
The following will work on 2.2.0 but not 2.3.0:
doSomething is never fired on 2.3.0.
The text was updated successfully, but these errors were encountered: