Skip to content

Stopping custom named queue breaks default main queue #889

@5andr0

Description

@5andr0

Your system information

  • VelocityJS version: 1.5.1
  • Browser: Firefox/Chrome latest
  • Operating System: Win10

Checklist

  • Is this an issue with code?: Yes
  • Is this an issue with documentation?: No
  • Have you reproduced this in other browsers?: Yes
  • Have you checked for updates?: Yes
  • Have you checked for similar open issues?: No

Please describe your issue in as much detail as possible:

Stopping a custom named queue breaks the default queue animation (left to right in my code example).
It resets the animation to an earlier frame, slows down and stops halfway.
Using another custom named queue instead of the main queue would fix it and isn't affected by the stop call.
Using Velocity v2+ also fixes this with its new queue system, however i'd like to stick with 1.5.1 for better browser support. Will you keep updating the pre v2 versions for bug fixes?

Steps for reproducing this issue (code):

var e = document.getElementById("div1");
e.style.position = 'absolute';

Velocity(e, { left: window.innerWidth}, 5000); // same problem with forcefeeding
Velocity(e, {opacity: 0.5}, {queue: "f", duration: 5000});
Velocity.Utilities.dequeue(e, "f");
setTimeout(function(){Velocity(e, "stop", "f");}, 2000);

JSFiddle example showing issue in action (code):

https://jsfiddle.net/5andr0/b7hyqLgk/1/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions