mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-24 11:40:34 +08:00
Fix SliderWithCallback
not clamping the value before calling the callback
This commit is contained in:
parent
2887beff5b
commit
528c508584
@ -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_());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user