Reputation: 3490
I would like to fire an event every time I scroll using tinyscrollbar. I've tried using jquery's scroll method but it only works on areas outside of the tinyscrollbar section. Does anybody know how to do this?
Thanks
Upvotes: 0
Views: 1410
Reputation: 8346
You can bind the following events.
$("#scrollbar").on('mouseup', '.track', function() {
console.log('scroll');
});
$("#scrollbar").on('mousewheel DOMMouseScroll', function() {
console.log('mousewheel');
});
Upvotes: 1