Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix shift + mouse move causing unwanted seeking

parent 2cfb13ee
......@@ -265,9 +265,6 @@ Rectangle {
onPositionChanged: {
var mapped = parentTrack.mapFromItem(clipRoot, mouse.x, mouse.y).x
root.mousePosChanged(Math.round(mapped / timeline.scaleFactor))
if (mouse.modifiers & Qt.ShiftModifier) {
timeline.position = Math.round(mapped / timeline.scaleFactor)
}
}
onEntered: {
var itemPos = mapToItem(tracksContainerArea, 0, 0, width, height)
......
......@@ -182,9 +182,6 @@ Item {
if (parentTrack) {
var mapped = parentTrack.mapFromItem(compositionRoot, mouse.x, mouse.y).x
root.mousePosChanged(Math.round(mapped / timeline.scaleFactor))
if (mouse.modifiers & Qt.ShiftModifier) {
timeline.position = Math.round(mapped / timeline.scaleFactor)
}
}
}
onWheel: zoomByWheel(wheel)
......
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