0

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

Gidon
  • 3,490
  • 7
  • 23
  • 31

2 Answers2

1

You can bind the following events.

$("#scrollbar").on('mouseup', '.track', function() {
    console.log('scroll');
});

$("#scrollbar").on('mousewheel DOMMouseScroll', function() {
    console.log('mousewheel');
});
msapkal
  • 8,268
  • 2
  • 31
  • 48
0

Found it, in tinyscrollbar.js line 167 "function wheel( event )"

Gidon
  • 3,490
  • 7
  • 23
  • 31