diff --git a/www/js/channel/panels/queuePanel/queuePanel.js b/www/js/channel/panels/queuePanel/queuePanel.js index 0adb6da..d368f57 100644 --- a/www/js/channel/panels/queuePanel/queuePanel.js +++ b/www/js/channel/panels/queuePanel/queuePanel.js @@ -515,8 +515,12 @@ class queuePanel extends panelObj{ //Render out time scale this.renderQueueScale(date); - //wait a few frames so the scale can finish rendering, because dom function aren't async for some fucking reason - for(let i = 0; i <= 2; i++){ + //Grab the first marker + let firstMarker = this.panelDocument.querySelector('.queue-marker-first'); + + //Loop until first marker is properly positioned + while(firstMarker.offsetTop > 0){ + //wait a few frames so the scale can finish rendering, because dom function aren't async for some fucking reason await utils.ux.awaitNextFrame(); }