From 6b36bb44d5933eed584e1657d402bc1fa07ff611 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 20 Oct 2020 22:27:19 +0200 Subject: caching scroll positions --- animism-align/frontend/app/views/viewer/viewer.reducer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'animism-align/frontend/app/views/viewer/viewer.reducer.js') diff --git a/animism-align/frontend/app/views/viewer/viewer.reducer.js b/animism-align/frontend/app/views/viewer/viewer.reducer.js index 29868aa..20911d6 100644 --- a/animism-align/frontend/app/views/viewer/viewer.reducer.js +++ b/animism-align/frontend/app/views/viewer/viewer.reducer.js @@ -18,12 +18,15 @@ const initialState = { /* section look and navigation */ sections: { loading: true }, - footnoteList: [], currentSection: null, nextSection: null, autoAdvance: false, atEndOfSection: false, + /* footnotes */ + footnoteList: [], + currentFootnote: -1, + /* color of the bar / logo / icons */ navStyle: 'white', -- cgit v1.2.3-70-g09d2