mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-17 16:38:09 +08:00
Fix SliderWithCallback
not clamping the value before calling the callback
This commit is contained in:
@@ -421,7 +421,7 @@ public:
|
||||
bool Focusable() const final { return true; }
|
||||
|
||||
void SetValue(Ref<T> val) {
|
||||
value_() = val();
|
||||
value_() = util::clamp(val(), min_(), max_());
|
||||
callback_(value_());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user