summaryrefslogtreecommitdiff
path: root/animism-align/frontend/views/align/components/timeline.component.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-06-30 16:21:44 +0200
committerJules Laplace <julescarbon@gmail.com>2020-06-30 16:21:44 +0200
commit534c90317badaadf341c8eb229d51d733d72fcee (patch)
tree2d846b74343e05e356e1b4b327597cfa2bfe0113 /animism-align/frontend/views/align/components/timeline.component.js
parent7d166ddbbbb8a7db6da3052ab01bd9e44c6f94e5 (diff)
TICKS AND WAVEFORM LINE UP
Diffstat (limited to 'animism-align/frontend/views/align/components/timeline.component.js')
-rw-r--r--animism-align/frontend/views/align/components/timeline.component.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/animism-align/frontend/views/align/components/timeline.component.js b/animism-align/frontend/views/align/components/timeline.component.js
index 5e07c0b..a1dad4c 100644
--- a/animism-align/frontend/views/align/components/timeline.component.js
+++ b/animism-align/frontend/views/align/components/timeline.component.js
@@ -39,7 +39,7 @@ class Timeline extends Component {
}
handleWheel(e) {
let { start_ts, zoom, duration } = this.props.timeline
- let secondsPerPixel = ZOOM_STEPS[zoom] / 10 // 0.1 sec / step
+ let secondsPerPixel = ZOOM_STEPS[zoom] * 0.1 // 0.1 sec / step
let widthTimeDuration = window.innerWidth * secondsPerPixel // secs per pixel
start_ts = clamp(start_ts + e.deltaY * ZOOM_STEPS[zoom], 0, duration - widthTimeDuration / 2)