开发者

Firefox 5 inactive tab jQuery animation issue

开发者 https://www.devze.com 2023-03-20 05:08 出处:网络
I have coded a slide开发者_运维知识库r to my project but it fails on chrome and firefox5. Slider has a info bar and if page is in inactive tab, it queues the animation of infobar and when i return to

I have coded a slide开发者_运维知识库r to my project but it fails on chrome and firefox5. Slider has a info bar and if page is in inactive tab, it queues the animation of infobar and when i return to the my page it repeats animation n times.

How can i fix that issue ? :(

I try: setTimeout but it couses a new bug that infobar never seems :S

The test link of my project is here : http://demo.cihanuygun.com/polo/


See this answer about how to detect the window losing and gaining focus and in your slidebox() function, don't queue up an animation if the window does not have focus.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号