summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/viewer.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-10-14 17:34:40 +0200
committerJules Laplace <julescarbon@gmail.com>2020-10-14 17:34:40 +0200
commit2d7af61fb12160e65bc373f1597a61f15da8d4ae (patch)
tree87e45986dbd34192f98148c5579a18f867c31146 /animism-align/frontend/app/views/viewer/viewer.actions.js
parent6373c1321cb680de9e354e1e03a11394e532254d (diff)
padding.. initial curtains...
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js')
-rw-r--r--animism-align/frontend/app/views/viewer/viewer.actions.js9
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 })
}