Hi there,
I've been trying the scrollable with a single item viewable [size: 1] and I have found the following:
1. If size==1 (in code: t==1), it DOESN'T SET/CHANGE the activeClass.
2. The click() function scrolls regardless to the right [r.next()] upon clicking due to this line [1st test case => (t==1)]:
return i===false?r.prev():r.next()
Solution: It works if I change this line to:
r.getItems().removeClass(s);v.addClass(s);return r
It would also be a good idea to add a second parameter on the click() function to the click function (callable via the api) so that it controls scrolling.
I've been trying the scrollable with a single item viewable [size: 1] and I have found the following:
1. If size==1 (in code: t==1), it DOESN'T SET/CHANGE the activeClass.
2. The click() function scrolls regardless to the right [r.next()] upon clicking due to this line [1st test case => (t==1)]:
return i===false?r.prev():r.next()
Solution: It works if I change this line to:
r.getItems().removeClass(s);v.addClass(s);return r
It would also be a good idea to add a second parameter on the click() function to the click function (callable via the api) so that it controls scrolling.