views:

99

answers:

0

Hey guys,

so that's pretty much my question.

My problem is that i have multiple scrolls being initiated from a single statement like so:

var all = $('.scroll').scrollable({
    size: 1,
    loop: true,
    speed:350,
    onSeek: function() {
       // upon slider click or arrow click, execute
    }
});

..and I have 2 sliders.. the onSeek function will be executed twice even though only one has the class "active"

So is there anyway to to ensure that my navigational arrows only work for the active scroll?

Thanks in advance!