Commit 7ae998e4 authored by i❤computers's avatar i❤computers

Keep advancing and collecting elements to highlight until you find a cue that...

Keep advancing and collecting elements to highlight until you find a cue that is not greater than you
parent 393deef1
......@@ -36,7 +36,7 @@ document.addEventListener('DOMContentLoaded', function initializePage() {
return;
}
if (transcriptCuesTrack[currentTranscriptIndex] && audio.currentTime >= transcriptCuesTrack[currentTranscriptIndex].cueTime) {
while (transcriptCuesTrack[currentTranscriptIndex] && audio.currentTime >= transcriptCuesTrack[currentTranscriptIndex].cueTime) {
$(cue_position_selector(transcriptCuesTrack[currentTranscriptIndex].cuePositionName)).forEach(addHighlightClass);
currentTranscriptIndex++;
}
......
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