From 3e5bc2f5581890f2d7d9f679ab5171c0637ff460 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 5 Jul 2020 17:02:39 +0200 Subject: notion of selected annotation --- .../frontend/views/align/components/timeline/waveform.component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'animism-align/frontend/views/align/components/timeline') diff --git a/animism-align/frontend/views/align/components/timeline/waveform.component.js b/animism-align/frontend/views/align/components/timeline/waveform.component.js index 0a118cf..785b020 100644 --- a/animism-align/frontend/views/align/components/timeline/waveform.component.js +++ b/animism-align/frontend/views/align/components/timeline/waveform.component.js @@ -48,8 +48,8 @@ class Waveform extends Component { let widthTimeDuration = h * secondsPerPixel // secs per pixel - let timeMin = start_ts - let timeMax = Math.min(start_ts + widthTimeDuration, duration) + let timeMin = Math.round(start_ts / secondsPerPixel) * secondsPerPixel + let timeMax = Math.min(timeMin + widthTimeDuration, duration) let timeWidth = timeMax - timeMin let stepMin = Math.floor(timeMin * 10) -- cgit v1.2.3-70-g09d2