I have a scrollable of size: 1 and try to scroll at the same speed regardless of how many pages are traversed to get to the seek target (more like what I understand by speed: distance / time).
Even though the desired dynamic speed is logged onBeforeSeek, it only applies for the next seek which sort of defeats the whole purpose ;-(
Any ideas what as to what I am missing? I also tried this.reload(), but it didn't have any effect (and is perhaps useless inside a configured event).
$("#sc").scrollable({
size: 1,
onBeforeSeek: function (e, i) {
var c = this.getIndex(); // also tried this.getPageIndex();
this.getConf().speed = (Math.max(c, i) - Math.min(c, i)) * 200;
// console.log(this.getConf().speed);
}
});
Even though the desired dynamic speed is logged onBeforeSeek, it only applies for the next seek which sort of defeats the whole purpose ;-(
Any ideas what as to what I am missing? I also tried this.reload(), but it didn't have any effect (and is perhaps useless inside a configured event).
