From 8e7389d1f5bb6e548f30f5dd50a4dba1f00efde8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Thu, 19 Apr 2018 13:16:47 +0200 Subject: [PATCH] qt: input_slider: Use the legacy scroll direction Downward mouse scroll seeks backward, updward scrolls forward --- modules/gui/qt/util/input_slider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/qt/util/input_slider.cpp b/modules/gui/qt/util/input_slider.cpp index 3bacbbe86d..54b476d7b4 100644 --- a/modules/gui/qt/util/input_slider.cpp +++ b/modules/gui/qt/util/input_slider.cpp @@ -403,7 +403,7 @@ void SeekSlider::wheelEvent( QWheelEvent *event ) { 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" ); - 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; float posOffset = static_cast( i_size ) / static_cast( inputLength ); setValue( value() + posOffset * maximum() ); -- GitLab