Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
8e7389d1
Commit
8e7389d1
authored
Apr 19, 2018
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt: input_slider: Use the legacy scroll direction
Downward mouse scroll seeks backward, updward scrolls forward
parent
35a5a0ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/gui/qt/util/input_slider.cpp
modules/gui/qt/util/input_slider.cpp
+1
-1
No files found.
modules/gui/qt/util/input_slider.cpp
View file @
8e7389d1
...
@@ -403,7 +403,7 @@ void SeekSlider::wheelEvent( QWheelEvent *event )
...
@@ -403,7 +403,7 @@ void SeekSlider::wheelEvent( QWheelEvent *event )
{
{
mtime_t
i_size
=
var_InheritInteger
(
p_intf
->
obj
.
libvlc
,
"short-jump-size"
);
mtime_t
i_size
=
var_InheritInteger
(
p_intf
->
obj
.
libvlc
,
"short-jump-size"
);
int
i_mode
=
var_InheritInteger
(
p_intf
->
obj
.
libvlc
,
"hotkeys-x-wheel-mode"
);
int
i_mode
=
var_InheritInteger
(
p_intf
->
obj
.
libvlc
,
"hotkeys-x-wheel-mode"
);
if
(
(
event
->
delta
()
>
0
&&
i_mode
!=
3
)
||
(
event
->
delta
()
<
0
&&
i_mode
==
3
)
)
if
(
(
event
->
delta
()
<
0
&&
i_mode
!=
3
)
||
(
event
->
delta
()
>
0
&&
i_mode
==
3
)
)
i_size
=
-
i_size
;
i_size
=
-
i_size
;
float
posOffset
=
static_cast
<
float
>
(
i_size
)
/
static_cast
<
float
>
(
inputLength
);
float
posOffset
=
static_cast
<
float
>
(
i_size
)
/
static_cast
<
float
>
(
inputLength
);
setValue
(
value
()
+
posOffset
*
maximum
()
);
setValue
(
value
()
+
posOffset
*
maximum
()
);
...
...
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