fixed "jump to bottom" now disapearing after click
This commit is contained in:
@@ -130,19 +130,19 @@ void ScrollBar::setDesiredValue(qreal value, bool animated)
|
||||
// }
|
||||
this->currentValueAnimation.setEndValue(value);
|
||||
this->smoothScrollingOffset = 0;
|
||||
this->atBottom = ((this->getMaximum() - this->getLargeChange()) - value) <= 0.01;
|
||||
this->currentValueAnimation.start();
|
||||
} else {
|
||||
if (this->currentValueAnimation.state() != QPropertyAnimation::Running) {
|
||||
this->smoothScrollingOffset = 0;
|
||||
this->desiredValue = value;
|
||||
this->currentValueAnimation.stop();
|
||||
this->atBottom = ((this->getMaximum() - this->getLargeChange()) - value) <= 0.01;
|
||||
setCurrentValue(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this->atBottom = ((this->getMaximum() - this->getLargeChange()) - value) <= 0.01;
|
||||
|
||||
this->smoothScrollingOffset = 0;
|
||||
this->desiredValue = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user