Scrollable - how to get the scroll direction
Hi guys,
I'm trying to use scrollable in such a way that when the next link is clicked, some function is called before the scroll takes place.
I can do this when either of the links is clicked:
var api = $(".scrollable").data("scrollable");
api.onBeforeSeek(function(idx) {
// call some function here.
});
...but cant figure out how to do it only when the next link is clicked. Would anyone have any ideas?
Cheers,
Eddie