1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00

LibGUI: Callback with the clamped value of Sliders on a jump to cursor

This commit is contained in:
Zaggy1024 2023-02-12 01:19:17 -06:00 committed by Jelle Raaijmakers
parent 2f20f16292
commit 0c230f5ff0

View file

@ -104,7 +104,7 @@ void Slider::mousedown_event(MouseEvent& event)
start_drag(event.position());
// Delay the callback to make it aware that a drag has started.
if (on_change)
on_change(new_value);
on_change(value());
return;
}