[vlc-devel] [PATCH] qt: Convert seek slider wheel events to actions

Jean-Baptiste Kempf jb at videolan.org
Thu Mar 8 18:06:23 CET 2018


On Thu, 8 Mar 2018, at 15:06, Hugo Beauzée-Luyssen wrote:
> -        setValue( value() + event->delta() / 12 ); /* 12 = 8 * 15 / 10
> -         Since delta is in 1/8 of ° and mouse have steps of 15 °
> -         and that our slider is in 0.1% and we want one step to be a 1%
> -         increment of position */

I have absolutely NO idea why it was done like that. 1% seemed quite arbitrary...

short-jump might be too small though.

LGTM.

-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list