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

Restore seek in clip monitor on Shift + move mouse

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