mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(ui): correct wrong comparison in CSimpleSlider::SetValue
This commit is contained in:
parent
c91c86151b
commit
25780ae857
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user