mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-30 09:43:09 +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);
|
auto newValue = this->StepValue(v4);
|
||||||
|
|
||||||
// Clamp to max value
|
// Clamp to max value
|
||||||
if (newValue + this->m_valueStep >= maxValue) {
|
if (newValue + this->m_valueStep > maxValue) {
|
||||||
newValue = maxValue;
|
newValue = maxValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user