In YUI, I have code that works for a mouse wheel. How to make this work for scrollbar?
Y.on('mousewheel', function(e) { var dir = e.wheelDelta > 0 ? 'Up' : 'Down'; console.log(dir); });
Thanks for any help ...
it was a simple solution
Y.on('scroll', function(e) { console.log(window.scrollY); });