Commit 8e7389d1 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

qt: input_slider: Use the legacy scroll direction

Downward mouse scroll seeks backward, updward scrolls forward
parent 35a5a0ab
......@@ -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() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment