summaryrefslogtreecommitdiff
path: root/animism-align/frontend/views/align/components/annotations/annotation.index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-08 23:52:06 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-08 23:52:06 +0200
commit49fb1cf616b31792729a012eed9bf82e9fa91e8f (patch)
tree627f150aa418202d7b443ef800dce16616b3739c /animism-align/frontend/views/align/components/annotations/annotation.index.js
parent18472645a7879baf00332a7ee5be8c4338bb8d21 (diff)
displaying media annotations. delete annotations
Diffstat (limited to 'animism-align/frontend/views/align/components/annotations/annotation.index.js')
-rw-r--r--animism-align/frontend/views/align/components/annotations/annotation.index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/animism-align/frontend/views/align/components/annotations/annotation.index.js b/animism-align/frontend/views/align/components/annotations/annotation.index.js
index 3a78dd4..dae64df 100644
--- a/animism-align/frontend/views/align/components/annotations/annotation.index.js
+++ b/animism-align/frontend/views/align/components/annotations/annotation.index.js
@@ -32,7 +32,7 @@ class AnnotationIndex extends Component {
let secondsPerPixel = ZOOM_STEPS[zoom] * 0.1 // 0.1 sec / step
let widthTimeDuration = INNER_HEIGHT * secondsPerPixel // secs per pixel
- let timeMin = start_ts - 30.0
+ let timeMin = start_ts - 50.0
let timeMax = Math.min(start_ts + widthTimeDuration, duration)
const items = order.filter(id => {
@@ -113,7 +113,7 @@ const mapStateToProps = state => ({
timeline: state.align.timeline,
annotationInForm: state.align.annotation,
index: state.annotation.index,
- media: state.media.index,
+ media: state.media.index.lookup,
})
const mapDispatchToProps = dispatch => ({