Recently my code to add a scroll listener to ion content had been deprecated (i believe? - i was using this.content.addScrollListener((event) => {})) and I am now using the following:
Thanks for response. The code does work to catch the scroll event but it seems to have broken the actual manual scrolling on my page, I get the warning:
Handling of ‘touchstart’ input event was delayed for 1482145573421 ms due to main thread being busy. Consider marking event handler as ‘passive’ to make the page more responsive
.Don’t think I will be wanting my users to wait 46 years to be able to scroll down to my ‘Register’ button!
Hey Mike. Thanks for your reply. I’m afraid I just assumed the scroll listener was the issue after the RC4 update as its the only thing in the component that changed, but after removing it the problem persists. I will try to find the cause today
I have noticed that RC4 ionScroll is showing lag/freeze as #alsco77 mentioned.
I made an affix effect on <ion-navbar> with RC3, but with RC4 it shows lag/freeze .
Blow is the actual code that worked in RC3
Same result but lagging with RC4
the values from $event takes action after scrolling is done.
if I console the $event, i can see the values are changing but does not render as value changes. View gets rendered after scrolling is done.
Thanks for providing a bit more clarity on this. I presumed it was an error with my code and gave up but yes i’m having the exact same problem. Had to take the scroll listener out of the component.