Formatting
This commit is contained in:
@@ -38,6 +38,8 @@ void StickySlider::mouseMoveEvent(QMouseEvent *e) {
|
||||
if (sticky_center_ == -1) return;
|
||||
|
||||
const int v = sliderPosition();
|
||||
if (v <= sticky_center_ + sticky_threshold_ && v >= sticky_center_ - sticky_threshold_) setSliderPosition(sticky_center_);
|
||||
if (v <= sticky_center_ + sticky_threshold_ && v >= sticky_center_ - sticky_threshold_) {
|
||||
setSliderPosition(sticky_center_);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user