Restore seek in clip monitor on Shift + move mouse

parent b72f28b9
Pipeline #26909 canceled with stage
...@@ -128,6 +128,13 @@ Item { ...@@ -128,6 +128,13 @@ Item {
hoverEnabled: true hoverEnabled: true
acceptedButtons: Qt.NoButton acceptedButtons: Qt.NoButton
anchors.fill: parent anchors.fill: parent
onPositionChanged: {
if (mouse.modifiers & Qt.ShiftModifier) {
var pos = Math.max(mouseX, 0)
pos += width/root.zoomFactor * root.zoomStart
controller.setPosition(Math.min(pos / root.timeScale, root.duration));
}
}
onWheel: { onWheel: {
controller.seek(wheel.angleDelta.x + wheel.angleDelta.y, wheel.modifiers) controller.seek(wheel.angleDelta.x + wheel.angleDelta.y, wheel.modifiers)
} }
...@@ -298,7 +305,7 @@ Item { ...@@ -298,7 +305,7 @@ Item {
controller.setPosition(Math.min(pos / root.timeScale, root.duration)); controller.setPosition(Math.min(pos / root.timeScale, root.duration));
} }
onPositionChanged: { onPositionChanged: {
if (audioThumb.isAudioClip && mouseY < audioSeekZone.y) { if (!(mouse.modifiers & Qt.ShiftModifier) && audioThumb.isAudioClip && mouseY < audioSeekZone.y) {
mouse.accepted = false mouse.accepted = false
return return
} }
......
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