Commit 396af5cc authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix changing speed breaks timeline focus.

Fixes #803
parent 96a6f883
Pipeline #48354 canceled with stage
...@@ -555,7 +555,11 @@ Rectangle { ...@@ -555,7 +555,11 @@ Rectangle {
if (sizeChanged) { if (sizeChanged) {
clipRoot.trimmedIn(clipRoot, shiftTrim, controlTrim) clipRoot.trimmedIn(clipRoot, shiftTrim, controlTrim)
sizeChanged = false sizeChanged = false
updateDrag() if (!controlTrim) {
updateDrag()
} else {
endDrag()
}
} }
} }
onDoubleClicked: { onDoubleClicked: {
...@@ -663,7 +667,11 @@ Rectangle { ...@@ -663,7 +667,11 @@ Rectangle {
if (sizeChanged) { if (sizeChanged) {
clipRoot.trimmedOut(clipRoot, shiftTrim, controlTrim) clipRoot.trimmedOut(clipRoot, shiftTrim, controlTrim)
sizeChanged = false sizeChanged = false
updateDrag() if (!controlTrim) {
updateDrag()
} else {
endDrag()
}
} }
} }
onDoubleClicked: { onDoubleClicked: {
......
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