You would use jquery to add an event listener, and possibly to the angularjs directive, to attach it to an element.
page.html:
<div my-scroller>
myscroller.js:
app.directive('myScroller', function(){ return { restrict: 'A', link: function(scope,elem,attrs){ $(elem).on('scroll', function(evt){ console.log(evt.offsetX + ':' + evt.offsetY); }); } } });
Edit: of course you don't even need to use jquery. Angular jqLite is enough for this, you just call the element without a jquery wrapper:
elem.on('scroll', ...
source share