Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
4ec4cedb
Commit
4ec4cedb
authored
Sep 03, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/Clip.qml
View file @
4ec4cedb
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment