summaryrefslogtreecommitdiff
path: root/animism-align/frontend/views/align/components/timeline/waveform.component.js
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/views/align/components/timeline/waveform.component.js')
-rw-r--r--animism-align/frontend/views/align/components/timeline/waveform.component.js4
1 files changed, 2 insertions, 2 deletions
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)