Ionic 3 scroll events sometimes not triggered on android and desktop browser


#1

I am using this directive to hide the header and toolbar when scroll down:

It’s simple and works perfectly on ios but not so well on android and desktop browser:
https://github.com/samarthagarwal/ScrollingHeader/issues/2

I’ve tried to fix it but due to my limited knowledge and skills I couldn’t. Any help would be much appreciated.