diff options
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/viewer.actions.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js index 3800623..16a3d8f 100644 --- a/animism-align/frontend/app/views/viewer/viewer.actions.js +++ b/animism-align/frontend/app/views/viewer/viewer.actions.js @@ -157,25 +157,26 @@ export const loadSections = () => dispatch => { time_to_first_fullscreen_element = 0.0 } } - if (!currentSection.fullscreenTimeline.length || time_to_first_fullscreen_element > 0.0) { + if ((!currentSection.fullscreenTimeline.length || time_to_first_fullscreen_element > 0.0) && currentSection.index !== 0) { // here we should create a dummy curtain event initial_curtain_event = makeFullscreenEvent(0, { start_ts: currentSection.start_ts, + end_ts: currentSection.start_ts + 1.1, type: 'curtain', settings: { color: CURTAIN_COLOR_LOOKUP.white, // TODO: get this from the first annotation fade_in_duration: '0.0', fade_out_duration: '1.0', - duration: '0', + duration: '1.0', } }) // - currentSection.fullscreenTimeline.push(initial_curtain_event) + currentSection.fullscreenTimeline.unshift(initial_curtain_event) } currentSection.duration = currentSection.end_ts - currentSection.start_ts } - // console.log(sections) + console.log(sections) // console.log(fullscreenTimeline) dispatch({ type: types.viewer.load_sections, sections }) } |
