From cdfec268837e3e1b6c06588658bce998cd1ff67e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 9 Nov 2020 18:09:42 +0100 Subject: comment --- .../frontend/app/views/viewer/checklist/checklist.content.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'animism-align/frontend/app/views') diff --git a/animism-align/frontend/app/views/viewer/checklist/checklist.content.js b/animism-align/frontend/app/views/viewer/checklist/checklist.content.js index 8beb9af..c3e5c58 100644 --- a/animism-align/frontend/app/views/viewer/checklist/checklist.content.js +++ b/animism-align/frontend/app/views/viewer/checklist/checklist.content.js @@ -9,6 +9,10 @@ import { PlayIcon } from '../nav/viewer.icons' class ChecklistContent extends Component { handleMediaSelection(section, mediaItem, i) { + // when clicking a work in the checklist, + // if it's the first work in the section, seek to the beginning of the section + // OTHERWISE seek to the work itself. might have to add this as another option on sections + // since the first "work" in Animism pt 1 starts about a minute in... if (i === 0 && section.index !== 0) { actions.viewer.hideNavComponent('checklist') actions.viewer.seekToSection(section) -- cgit v1.2.3-70-g09d2