mirror of
https://github.com/jquery/jquery.git
synced 2026-02-04 05:15:02 -05:00
timerId has to be set to true, to avoid starting multiple animation queues
This commit is contained in:
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);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user