diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-11-09 18:09:42 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-11-09 18:09:42 +0100 |
| commit | cdfec268837e3e1b6c06588658bce998cd1ff67e (patch) | |
| tree | 224f4182ed23ca638228f703392eff6ba4c3064e /animism-align/frontend | |
| parent | 6d2df4175ed9ef611a679eb6379755f9c0e7835a (diff) | |
comment
Diffstat (limited to 'animism-align/frontend')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/checklist/checklist.content.js | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
