From 2ebe47a0ec566be75522da533e76a2f491227a51 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 12 Oct 2020 19:11:07 +0200 Subject: new annotations --- .../frontend/app/views/align/containers/timeline.container.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'animism-align/frontend/app/views/align/containers/timeline.container.js') diff --git a/animism-align/frontend/app/views/align/containers/timeline.container.js b/animism-align/frontend/app/views/align/containers/timeline.container.js index d1917b5..3db658c 100644 --- a/animism-align/frontend/app/views/align/containers/timeline.container.js +++ b/animism-align/frontend/app/views/align/containers/timeline.container.js @@ -127,7 +127,9 @@ class Timeline extends Component { } handleTimelineClick(e) { const play_ts = positionToTime(e.pageY, this.props.timeline) - if (e.pageX < WAVEFORM_SIZE * 0.67) { + if (e.metaKey) { + actions.align.spliceTime(play_ts) + } else if (e.pageX < WAVEFORM_SIZE * 0.67) { actions.audio.seek(play_ts) } else { actions.align.showNewAnnotationForm(play_ts, this.props.text) -- cgit v1.2.3-70-g09d2