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

Fix clicking on clip marker label moving timeline cursor to approximate position

preventing edit/delete of the marker.
Related to #788
parent 571f59e1
Pipeline #32813 passed with stage
in 11 minutes and 18 seconds
......@@ -362,7 +362,7 @@ Rectangle {
cursorShape: Qt.PointingHandCursor
hoverEnabled: true
onDoubleClicked: timeline.editMarker(clipRoot.clipId, model.frame)
onClicked: proxy.position = (clipRoot.x + markerBase.x) / timeline.scaleFactor
onClicked: proxy.position = clipRoot.modelStart + (clipRoot.speed < 0 ? (clipRoot.maxDuration - clipRoot.inPoint) * timeScale + (Math.round(model.frame / clipRoot.speed)) : (Math.round(model.frame / clipRoot.speed) - clipRoot.inPoint))
}
}
TextMetrics {
......
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