Skip to content

Commit

Permalink
Merge pull request #890 from 5andr0/v1
Browse files Browse the repository at this point in the history
Bugfix: Stopping custom named queue breaks default main queue activeTweens
  • Loading branch information
Rycochet authored Jul 31, 2018
2 parents 6dd28a2 + 914fb04 commit 9e53b45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions velocity.js
Original file line number Diff line number Diff line change
Expand Up @@ -2835,10 +2835,10 @@
if (propertiesMap === "stop") {
/* Since "reverse" uses cached start values (the previous call's endValues), these values must be
changed to reflect the final value that the elements were actually tweened to. */
/* Note: If only queue:false animations are currently running on an element, it won't have a tweensContainer
object. Also, queue:false animations can't be reversed. */
/* Note: If only queue:false/queue:"custom" animations are currently running on an element, it won't have a tweensContainer
object. Also, queue:false/queue:"custom" animations can't be reversed. */
var data = Data(element);
if (data && data.tweensContainer && queueName !== false) {
if (data && data.tweensContainer && (queueName === true || queueName === "")) {
$.each(data.tweensContainer, function(m, activeTween) {
activeTween.endValue = activeTween.currentValue;
});
Expand Down

0 comments on commit 9e53b45

Please sign in to comment.