-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Hello, first sorry for my english ;)
The scroller works very well, but I saw a little bug on Chrome (14.0.835.186) and Safari (Version 5.1 (7534.48.3)) run on a Mac OsX Lion (10.7.1)
Indeed, when I run the page it works. Then I open a new tab, i stay on this tab (for 30 seconds or 1 minute). Then, when I go back to my page with "Totem", the last element stay with a margin Top negative ( margin-top:65px, in my case). The next interval fire, then the "new last li element" do the same thing, etc.
So, I did a modification that resolve my bug in the base.start_interval = function(){
I add the following lines before "base.$el.find('li:first').animate({...});" =
base.$el.find('li').clearQueue();
base.$el.find('li:not(:first)').css('marginTop','0');
I don't know if it's a good way, but it's works very well for me. I tried to reproduce the bug on your demo, but I can't, I don't know why ! :s
If you've got a better solution...
Have a good day..