skins2: remove range constraint for slider
commit39c57090b1468d3b85c96b62b7c20e3937aa817c
authorErwan Tulou <erwan10@videolan.org>
Fri, 5 Apr 2013 15:52:26 +0000 (5 17:52 +0200)
committerErwan Tulou <erwan10@videolan.org>
Fri, 5 Apr 2013 17:14:34 +0000 (5 19:14 +0200)
treea44bbfb72ce0b9cb7ee0d00ee5477e50e4f3fde2
parent29db598a0a7ff27ec7cfeab68da3194bc456dd4a
skins2: remove range constraint for slider

Till now, moving a skins2 slider was only possible if the pointer didn't get
too far away from the control (hardcoded parameter of 40 pixels in skins2).
Though this feature can also be seen elsewhere (firefox slider does it too),
the result may not look so natural especially for things like equalizers.
Moreover, qt4 doesn't implement this constraint, and therefore true skins2
sliders and qt4 sliders obtained from the popup menus were behaving differently.

So better remove this limitation and make things consistent throughout vlc
(skins2 + qt4)
modules/gui/skins2/controls/ctrl_slider.cpp
modules/gui/skins2/controls/ctrl_slider.hpp