I want to trigger a function when a user scrolls down the page, both on desktop and mobile:
const doc = $document;
const viewport = angular.element(doc);
viewport.bind('scroll', myFunc);
myFunc is correctly invoked on desktop. Mobile doesn’t work (both device or emulator on chrome).
any idea why please?