spotades / coin-slider

Automatically exported from code.google.com/p/coin-slider
0 stars 0 forks source link

Too fast switching images. #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I set animation for 2 seconds.
2. But soon I click the next button, the animation speeds up.
3. The faster you click, the faster it animates.
4. Goes faster and faster.
5. He forgets about his time of 2 seconds per move.
6. Even when the animation should go at its own pace.

What is the expected output? What do you see instead?
Quick change when I click quickly is ok.
But then the animation speed should be back to normal. :/

What version of the product are you using? On what operating system?
Firefox 4, Windows 7, last coin-slider
Chrome

Please provide any additional information below.

Original issue reported on code.google.com by pawel...@gmail.com on 13 May 2011 at 9:46

GoogleCodeExporter commented 8 years ago
I think that when you click "next" before the current animation reaches the 
end, some clearInterval not be fired.

Original comment by pawel...@gmail.com on 13 May 2011 at 5:03

GoogleCodeExporter commented 8 years ago
Had the same issue and was able to fix it by replacing the 
setInterval/clearInterval calls on "appInterval" (appearence interval) with 
setTimeout/clearTimeout. Then you just have to add an additional setTimeout at 
the end of the appearence function.

Hope this helps

Original comment by Remo.Sie...@gmail.com on 31 Aug 2012 at 8:01

Attachments: