Commit 282248c2 authored by i❤computers's avatar i❤computers
Browse files

Some highlight transitions stopped animating. Turned out the movie

clips in the cuesTrack is what caused a miscalculation.
parent 5261180f
......@@ -5,7 +5,9 @@ document.addEventListener('DOMContentLoaded', function initializePage() {
// Ideally these transitions are applied directly to html
var MAX_TRANSITION_TIME = 0.4; //make sure transition time matches in index.html's styling
cuesTrack.forEach(function setShortTransitionTimes(cue, index) {
.filter(function isNotMovieClip(cue) { return !cue.movieClip; })
.forEach(function setShortTransitionTimes(cue, index, cuesTrack) {
if (index + 1 === cuesTrack.length) {
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