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
95c1d026
Commit
95c1d026
authored
Dec 04, 2019
by
Jean-Baptiste Mardelle
Browse files
Don't show negative timecode when mouse is in track head
parent
5d12b66c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/timeline.qml
View file @
95c1d026
...
...
@@ -1204,7 +1204,7 @@ Rectangle {
}
if
(
dragProxy
.
draggedItem
>
-
1
&&
mouse
.
buttons
===
Qt
.
LeftButton
&&
(
controller
.
isClip
(
dragProxy
.
draggedItem
)
||
controller
.
isComposition
(
dragProxy
.
draggedItem
)))
{
continuousScrolling
(
mouse
.
x
+
parent
.
x
)
var
mapped
=
tracksContainerArea
.
mapFromItem
(
dragProxy
,
mouse
.
x
,
mouse
.
y
).
x
var
mapped
=
Math
.
max
(
0
,
tracksContainerArea
.
mapFromItem
(
dragProxy
,
mouse
.
x
,
mouse
.
y
).
x
)
root
.
mousePosChanged
(
Math
.
round
(
mapped
/
timeline
.
scaleFactor
))
var
posx
=
Math
.
round
((
parent
.
x
)
/
root
.
timeScale
)
var
posy
=
Math
.
min
(
Math
.
max
(
0
,
mouse
.
y
+
parent
.
y
-
dragProxy
.
verticalOffset
),
tracksContainerArea
.
height
)
...
...
Write
Preview
Supports
Markdown
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