Skip to content
GitLab
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
e4e086c4
Commit
e4e086c4
authored
Apr 07, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix active track selection didn't update vertical scrolling
Fixes
#612
parent
cfba6861
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/timeline.qml
View file @
e4e086c4
...
...
@@ -310,7 +310,7 @@ Rectangle {
var
tk
=
Logic
.
getTrackById
(
timeline
.
activeTrack
)
if
(
tk
.
y
<
scrollView
.
contentY
)
{
scrollView
.
contentY
=
Math
.
max
(
0
,
tk
.
y
-
scrollView
.
height
/
3
)
}
else
if
(
tk
.
y
+
tk
.
height
>
scrollView
.
contentY
+
scrollView
.
contentItem
.
height
)
{
}
else
if
(
tk
.
y
+
tk
.
height
>
scrollView
.
contentY
+
scrollView
.
height
)
{
var
newY
=
Math
.
min
(
trackHeaders
.
height
-
scrollView
.
height
+
scrollView
.
ScrollBar
.
horizontal
.
height
,
tk
.
y
-
scrollView
.
height
/
3
)
if
(
newY
>=
0
)
{
scrollView
.
contentY
=
newY
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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