timerId has to be set to true, to avoid starting multiple animation queues
This commit is contained in:
parent
933ea8c5fa
commit
6de29b24b1
1 changed files with 3 additions and 3 deletions
6
src/effects.js
vendored
6
src/effects.js
vendored
|
@ -363,9 +363,9 @@ jQuery.fx.prototype = {
|
|||
t.elem = this.elem;
|
||||
|
||||
if ( t() && jQuery.timers.push(t) && !timerId ) {
|
||||
jQuery.support.requestAnimationFrame ?
|
||||
window[jQuery.support.requestAnimationFrame](fx.tick):
|
||||
timerId = setInterval(fx.tick, fx.interval);
|
||||
timerId = jQuery.support.requestAnimationFrame ?
|
||||
!window[jQuery.support.requestAnimationFrame](fx.tick):
|
||||
setInterval(fx.tick, fx.interval);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue