Commit 469dd851 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix timeline cursor sometimes losing sync with wuler playhead

parent bc8c8f83
Pipeline #188255 passed with stage
in 7 minutes and 22 seconds
......@@ -492,7 +492,10 @@ Rectangle {
//onCurrentTrackChanged: timeline.selection = []
onTimeScaleChanged: {
if (root.zoomOnMouse >= 0) {
if (scrollView.visibleArea.widthRatio >= 1) {
scrollView.contentX = 0
root.zoomOnMouse = -1
} else if (root.zoomOnMouse >= 0) {
scrollView.contentX = Math.max(0, root.zoomOnMouse * root.timeScale - getMouseX())
root.zoomOnMouse = -1
} else if (root.zoomOnBar) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment