summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/app/views')
-rw-r--r--animism-align/frontend/app/views/viewer/checklist/checklist.content.js4
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)