Maheshjayachandran / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

END event dispatched too early for animation queues #437

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Both goog.fx.AnimationQueue implementations track only the FINISH event for the 
queued animations.  They dispatch both FINISH and END event after receiving a 
FINISH event for the final animation, which is before the END event for the 
animation.  This is particularly problematic when combined with the behavior of 
goog.fx.dom.PredefinedEffect (arguably buggy also), which executes a final 
animation frame in it's onEnd handler:

goog.fx.dom.PredefinedEffect.prototype.onEnd = function() {
  this.updateStyle();
  goog.fx.dom.PredefinedEffect.superClass_.onEnd.call(this);
};

A user of AnimationQueue should be able to rely on the END event meaning that 
no subsequent animation will be performed.

Original issue reported on code.google.com by fay.s...@gmail.com on 15 Mar 2012 at 2:30

GoogleCodeExporter commented 9 years ago
Seems similar to issue 394.  Should investigate fix for both.

Original comment by nn...@google.com on 11 May 2012 at 8:14