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
367d056f
Commit
367d056f
authored
Jul 12, 2020
by
Jean-Baptiste Mardelle
Browse files
Restore seek in clip monitor on Shift + move mouse
parent
419024eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/view/kdenliveclipmonitor.qml
View file @
367d056f
...
...
@@ -128,6 +128,13 @@ Item {
hoverEnabled
:
true
acceptedButtons
:
Qt
.
NoButton
anchors.fill
:
parent
onPositionChanged
:
{
if
(
mouse
.
modifiers
&
Qt
.
ShiftModifier
)
{
var
pos
=
Math
.
max
(
mouseX
,
0
)
pos
+=
width
/
root
.
zoomFactor
*
root
.
zoomStart
controller
.
setPosition
(
Math
.
min
(
pos
/
root
.
timeScale
,
root
.
duration
));
}
}
onWheel
:
{
controller
.
seek
(
wheel
.
angleDelta
.
x
+
wheel
.
angleDelta
.
y
,
wheel
.
modifiers
)
}
...
...
@@ -298,7 +305,7 @@ Item {
controller
.
setPosition
(
Math
.
min
(
pos
/
root
.
timeScale
,
root
.
duration
));
}
onPositionChanged
:
{
if
(
audioThumb
.
isAudioClip
&&
mouseY
<
audioSeekZone
.
y
)
{
if
(
!
(
mouse
.
modifiers
&
Qt
.
ShiftModifier
)
&&
audioThumb
.
isAudioClip
&&
mouseY
<
audioSeekZone
.
y
)
{
mouse
.
accepted
=
false
return
}
...
...
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