1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09: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
Notes: sideshowbarker 2024-07-17 10:05:47 +09:00

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;
}