diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-09-09 22:06:54 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-09-09 22:06:54 +0200 |
| commit | 6136baa5e782eba3477f7a3bdc8ba8f03a64452f (patch) | |
| tree | c771cdd30378ea2444a2166860843ccc0b7f0d5f /animism-align/frontend/app/views/viewer/viewer.actions.js | |
| parent | fc7d1ed7ec0d3e101551811501cd59d43e9be3d1 (diff) | |
auto advance carousel
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/viewer.actions.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
