question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stopping custom named queue breaks default main queue

See original GitHub issue

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/

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
5andr0commented, Jul 30, 2018

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

0reactions
Rycochetcommented, Jul 31, 2018

And 1.5.2 is now published and out with this fix - thanks! 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found