mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-13 01:35:05 +03:00
fix(ui): correct wrong comparison in CSimpleSlider::SetValue
This commit is contained in:
1 file changed
+1
-1
@@ -290,7 +290,7 @@ void CSimpleSlider::SetValue(float value) {
|
||||
auto newValue = this->StepValue(v4);
|
||||
|
||||
// Clamp to max value
|
||||
if (newValue + this->m_valueStep >= maxValue) {
|
||||
if (newValue + this->m_valueStep > maxValue) {
|
||||
newValue = maxValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user