Formatting

This commit is contained in:
Jonas Kvinge
2021-08-23 21:21:08 +02:00
parent ed7794f396
commit ea2bfbda44
111 changed files with 833 additions and 425 deletions

View File

@@ -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_);
}
}