From 2d7af61fb12160e65bc373f1597a61f15da8d4ae Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 14 Oct 2020 17:34:40 +0200 Subject: padding.. initial curtains... --- animism-align/frontend/app/views/viewer/viewer.actions.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js') 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 }) } -- cgit v1.2.3-70-g09d2