From 699bea5e9ec626be3b90f5ba8ce1c045653297bf Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Tue, 2 Nov 2021 23:01:13 -0500 Subject: [PATCH] Fix clip bar placement after video is extended --- thrimbletrimmer/scripts/edit.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/thrimbletrimmer/scripts/edit.js b/thrimbletrimmer/scripts/edit.js index 22fa3eb..f633e0d 100644 --- a/thrimbletrimmer/scripts/edit.js +++ b/thrimbletrimmer/scripts/edit.js @@ -412,9 +412,12 @@ async function initializeVideoInfo() { rangeEndField.value = videoHumanTimeFromWubloaderTime(globalEndTimeString); } } - rangeDataUpdated(); globalLoadedRangeData = true; } + // Although we may or may not have updated the range data here, this is where we know the new video duration. + // Because of this, we need to run this to properly update range-dependent things like the clip bar UI, + // which require a location. + rangeDataUpdated(); }); player.on("timeupdate", () => { const player = getVideoJS();