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:
parent
2f20f16292
commit
0c230f5ff0
Notes:
sideshowbarker
2024-07-17 10:05:47 +09:00
Author: https://github.com/Zaggy1024
Commit: 0c230f5ff0
Pull-request: https://github.com/SerenityOS/serenity/pull/17447
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue