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
eaa882f7
Commit
eaa882f7
authored
Apr 01, 2020
by
Jean-Baptiste Mardelle
Browse files
Don't allow seeking outside clip bounds, use consistent Shift+Wheel to seek 1 second
parent
01cd2631
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/monitor.cpp
View file @
eaa882f7
...
...
@@ -967,12 +967,13 @@ void Monitor::keyPressEvent(QKeyEvent *event)
void
Monitor
::
slotMouseSeek
(
int
eventDelta
,
uint
modifiers
)
{
if
((
modifiers
&
Qt
::
Control
Modifier
)
!=
0u
)
{
if
((
modifiers
&
Qt
::
Shift
Modifier
)
!=
0u
)
{
int
delta
=
qRound
(
pCore
->
getCurrentFps
());
if
(
eventDelta
>
0
)
{
delta
=
0
-
delta
;
}
m_glMonitor
->
getControllerProxy
()
->
setPosition
(
m_glMonitor
->
getCurrentPos
()
-
delta
);
delta
=
qMax
(
0
,
m_glMonitor
->
getCurrentPos
()
-
delta
);
m_glMonitor
->
getControllerProxy
()
->
setPosition
(
qMin
(
delta
,
m_glMonitor
->
duration
()
-
1
));
}
else
if
((
modifiers
&
Qt
::
AltModifier
)
!=
0u
)
{
if
(
eventDelta
>=
0
)
{
emit
seekToPreviousSnap
();
...
...
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