From 6136baa5e782eba3477f7a3bdc8ba8f03a64452f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 9 Sep 2020 22:06:54 +0200 Subject: auto advance carousel --- animism-align/frontend/app/views/viewer/viewer.actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js') diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js index 2771957..21a8098 100644 --- a/animism-align/frontend/app/views/viewer/viewer.actions.js +++ b/animism-align/frontend/app/views/viewer/viewer.actions.js @@ -111,11 +111,11 @@ export const loadSections = () => dispatch => { } } - // build timeline of gallery / carousel advance instructions + // build timeline of gallery / carousel advance instructions. this is in reverse so we can step thru it if (GALLERY_UTILITY_ANNOTATION_TYPES.has(annotation.type) && currentSection.fullscreenTimeline.length) { const lastTimelineEvent = currentSection.fullscreenTimeline[currentSection.fullscreenTimeline.length - 1] if (!lastTimelineEvent.timeline) lastTimelineEvent.timeline = [] - lastTimelineEvent.timeline.push(annotation) + lastTimelineEvent.timeline.unshift(annotation) } // build timeline of special inline items -- cgit v1.2.3-70-g09d2