vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Thu Apr 19 
13:16:47 2018 +0200| [8e7389d1f5bb6e548f30f5dd50a4dba1f00efde8] | committer: 
Hugo Beauzée-Luyssen

qt: input_slider: Use the legacy scroll direction

Downward mouse scroll seeks backward, updward scrolls forward

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8e7389d1f5bb6e548f30f5dd50a4dba1f00efde8
---

 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<float>( i_size ) / static_cast<float>( 
inputLength );
         setValue( value() + posOffset * maximum() );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to