Compare commits

..

2 Commits

Author SHA1 Message Date
Mikołaj Lubiak
a85fe6ace1
Merge 528c508584 into 1d40687a40 2024-10-19 16:01:30 +00:00
Mikołaj Lubiak
528c508584
Fix SliderWithCallback not clamping the value before calling the callback 2024-10-19 18:01:27 +02:00

View File

@ -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_());
}