Stopping custom named queue breaks default main queue
See original GitHub issueYour 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):
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
How to get this thread waiting on a queue to quit?
The answer it turns out is quite simple. Pick a value that would be invalid for the code that processes the Queue (...
Read more >Python Stacks, Queues, and Priority Queues in Practice
In this tutorial, you'll take a deep dive into the theory and practice of queues in programming. Along the way, you'll get to...
Read more >Queue Processor - its Configuration, Usage & Execution
Queue processors will be up and running only when the ASYNCPROCESSOR or the System Runtime Context has the context of the queue processor...
Read more >25.5. Working with Queues in Rsyslog
FixedArray queue — the default mode for the main message queue, with a limit of 10,000 elements. · LinkedList queue — here, all...
Read more >Python Implementation of Redis Simple Message Queue ...
RSMQ is trying to emulate Amazon's SQS-like functionality, where there is a named queue (name consists of "namespace" and "qname") that is backed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I fixed it: https://github.com/julianshapiro/velocity/pull/890 Really looking forward to the v2 extra file for old browser support! Thanks for your awesome work
And 1.5.2 is now published and out with this fix - thanks! 😃