Only change the equalizer values when the user lets go of the slider - might make it a bit smoother. Updates issue #191
This commit is contained in:
parent
07a851c951
commit
95bfcd86a9
@ -40,6 +40,9 @@
|
||||
<property name="maximum">
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="tracking">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
|
@ -29,8 +29,8 @@ void StickySlider::mouseMoveEvent(QMouseEvent *e) {
|
||||
if (sticky_center_ == -1)
|
||||
return;
|
||||
|
||||
const int v = value();
|
||||
const int v = sliderPosition();
|
||||
if (v <= sticky_center_ + sticky_threshold_ &&
|
||||
v >= sticky_center_ - sticky_threshold_)
|
||||
setValue(sticky_center_);
|
||||
setSliderPosition(sticky_center_);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user