mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:07:36 +00:00
LibGUI: Callback with the clamped value of Sliders on a jump to cursor
This commit is contained in:
parent
2f20f16292
commit
0c230f5ff0
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ void Slider::mousedown_event(MouseEvent& event)
|
||||||
start_drag(event.position());
|
start_drag(event.position());
|
||||||
// Delay the callback to make it aware that a drag has started.
|
// Delay the callback to make it aware that a drag has started.
|
||||||
if (on_change)
|
if (on_change)
|
||||||
on_change(new_value);
|
on_change(value());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue