Fix timeline sometimes not scrolling to cursor position.

Fixes #645
parent c20b5139
......@@ -264,8 +264,12 @@ Rectangle {
}
root.mainFrame = Math.round(mouse.x / timeline.scaleFactor)
root.showClipMenu(clipRoot.clipId)
root.autoScrolling = timeline.autoScroll
}
}
onReleased: {
root.autoScrolling = timeline.autoScroll
}
Keys.onShortcutOverride: event.accepted = clipRoot.isGrabbed && (event.key === Qt.Key_Left || event.key === Qt.Key_Right || event.key === Qt.Key_Up || event.key === Qt.Key_Down || event.key === Qt.Key_Escape)
Keys.onLeftPressed: {
var offset = event.modifiers === Qt.ShiftModifier ? timeline.fps() : 1
......
......@@ -312,7 +312,7 @@ Rectangle {
}
onConsumerPositionChanged: {
if (autoScrolling) Logic.scrollIfNeeded()
if (root.autoScrolling) Logic.scrollIfNeeded()
}
onViewActiveTrackChanged: {
......
Markdown is supported
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