summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/sections/viewer.sections.list.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-11-21 18:43:41 +0100
committerJules Laplace <julescarbon@gmail.com>2020-11-21 18:43:41 +0100
commit49a4646c13b4b722d06f94f738fc3ad3d55f81e7 (patch)
treef888df4f8070088dc8bbf78301d087a2077511ef /animism-align/frontend/app/views/viewer/sections/viewer.sections.list.js
parentd8170c608a7110361b5cd0fce4540c459f480293 (diff)
handheld warning modal at the end of the first chapter
Diffstat (limited to 'animism-align/frontend/app/views/viewer/sections/viewer.sections.list.js')
-rw-r--r--animism-align/frontend/app/views/viewer/sections/viewer.sections.list.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/animism-align/frontend/app/views/viewer/sections/viewer.sections.list.js b/animism-align/frontend/app/views/viewer/sections/viewer.sections.list.js
index 8fc1238..800cef4 100644
--- a/animism-align/frontend/app/views/viewer/sections/viewer.sections.list.js
+++ b/animism-align/frontend/app/views/viewer/sections/viewer.sections.list.js
@@ -37,7 +37,7 @@ class ViewerSectionsList extends Component {
this.scrollRef.current.scrollLeft += delta
}
handleSectionClick(e, section) {
- if (this.props.onlyEnableFirstSection) {
+ if (this.props.onlyEnableFirstSection && section.index !== 0) {
this.setState({ selectedSectionIndex: section.index })
clearTimeout(this.warningFadeTimeout)
this.warningFadeTimeout = setTimeout(() => {