From 49a4646c13b4b722d06f94f738fc3ad3d55f81e7 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 21 Nov 2020 18:43:41 +0100 Subject: handheld warning modal at the end of the first chapter --- .../frontend/app/views/viewer/sections/viewer.sections.list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'animism-align/frontend/app/views/viewer/sections/viewer.sections.list.js') 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(() => { -- cgit v1.2.3-70-g09d2