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
d948801d
Commit
d948801d
authored
Mar 01, 2021
by
Jean-Baptiste Mardelle
Browse files
remove some debug output
parent
5297ef59
Pipeline
#53052
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/timeline.qml
View file @
d948801d
...
...
@@ -286,7 +286,7 @@ Rectangle {
function
regainFocus
(
mousePos
)
{
var
currentMouseTrack
=
Logic
.
getTrackIdFromPos
(
mousePos
.
y
-
ruler
.
height
-
subtitleTrack
.
height
+
scrollView
.
contentY
)
// Try to find correct item
console
.
log
(
'
checking item on TK:
'
,
currentMouseTrack
,
'
AT:
'
,
mousePos
,
'
SCROLL POS:
'
,
(
mousePos
.
y
-
ruler
.
height
-
subtitleTrack
.
height
+
scrollView
.
contentY
))
//
console.log('checking item on TK: ', currentMouseTrack, ' AT: ', mousePos, ' SCROLL POS: ', (mousePos.y - ruler.height - subtitleTrack.height + scrollView.contentY))
var
tentativeClip
=
getItemAtPos
(
currentMouseTrack
,
mousePos
.
x
-
trackHeaders
.
width
,
dragProxy
.
isComposition
)
if
(
tentativeClip
&&
tentativeClip
.
clipId
)
{
dragProxy
.
draggedItem
=
tentativeClip
.
clipId
...
...
@@ -297,7 +297,6 @@ Rectangle {
dragProxy
.
height
=
tentativeClip
.
height
dragProxy
.
masterObject
=
tentativeClip
dragProxy
.
sourceTrack
=
tk
console
.
log
(
'
missing item
'
,
tentativeClip
.
clipId
,
'
, COORDS:
'
,
tentativeClip
.
x
,
'
x
'
,
tentativeClip
.
y
,
'
, TK id:
'
,
tk
,
'
, TKY:
'
,
Logic
.
getTrackYFromId
(
tk
))
dragProxy
.
sourceFrame
=
tentativeClip
.
modelStart
dragProxy
.
isComposition
=
tentativeClip
.
isComposition
}
else
{
...
...
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