Skip to content

Commit 7909443

Browse files
committed
fix(timeline): improved zoom scaling
1 parent ba5e90f commit 7909443

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/app-frontend/src/features/timeline/TimelineView.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export default {
284284
const centerRatio = event.offsetX / viewWidth
285285
const center = size * centerRatio + startTime.value
286286
287-
let newSize = size + event.deltaY * 4
287+
let newSize = size + event.deltaY / viewWidth * size * 2
288288
if (newSize < 100) {
289289
newSize = 100
290290
}
@@ -303,6 +303,7 @@ export default {
303303
let deltaX = event.deltaX
304304
305305
if (deltaX === 0 && event.shiftKey && event.deltaY !== 0) {
306+
// Horitonzal scroll with vertical mouse wheel and shift key
306307
deltaX = event.deltaY
307308
}
308309

0 commit comments

Comments
 (0)