Commit f3139bda authored by i❤computers's avatar i❤computers

Forgot to update the transaction time setter function to the new cue data structure.

parent 7ae998e4
......@@ -8,9 +8,9 @@ document.addEventListener('DOMContentLoaded', function initializePage() {
if (index + 1 === transcriptCuesTrack.length) {
return;
}
var cueDuration = transcriptCuesTrack[index + 1] - cue;
var cueDuration = transcriptCuesTrack[index + 1].cueTime - cue.cueTime;
if (cueDuration < MAX_TRANSITION_TIME) {
$(cue_position_selector(index)).forEach(function (cueElement) {
$(cue_position_selector(cue.cuePositionName)).forEach(function (cueElement) {
cueElement.style.transitionDuration = cueDuration + "s";
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment