the problem is when you have a long list of items to display. if i have 10 items, and i want to jump from item 1 to item 10, there is a very long delay. currently, easyslider uses the current formula to calculate how long it takes to do a jump:
var speed = diff*options.speed;
so if there's a difference of 9, it says 9*1000, or 9 seconds for the jump to complete, assuming 1000 milliseconds is your default pause time.
there's a better way to handle this, IMHO. for example, using the formula below:
var speed = Math.abs(options.speed/(diff/2));
let's use a few examples to show how this is a bit faster.
- if you jump from item 1 to item 10, your difference is 9. if you divide by half of that, your jump time is 1000/4.5, or 200 milliseconds.
- if you jump from item 1 to item 5, your difference is 4. 1000/2 will result in a delay of 500 milliseconds.