From a89f5138d3fe9f340d5c70e5b63542f3f7b9cdc0 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 26 Jun 2013 10:52:37 -0400 Subject: [PATCH] Wait for movements to complete before queue callback --- www/assets/js/callbacks.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/www/assets/js/callbacks.js b/www/assets/js/callbacks.js index 777242f9..fd470401 100644 --- a/www/assets/js/callbacks.js +++ b/www/assets/js/callbacks.js @@ -649,6 +649,13 @@ Callbacks = { }, queue: function(data) { + // Wait until pending movements are completed + if(MOVING) { + setTimeout(function() { + Callbacks.queue(data); + }, 100); + return; + } var li = makeQueueEntry(data.media, true); li.hide(); var idx = data.pos;