diff options
author | Zaggy1024 <zaggy1024@gmail.com> | 2023-02-12 01:19:17 -0600 |
---|---|---|
committer | Jelle Raaijmakers <jelle@gmta.nl> | 2023-02-12 09:53:05 +0100 |
commit | 0c230f5ff071d842f48d5a1447997531f1cd9b99 (patch) | |
tree | 97f85d7c721cc8fe77f57768a5c52b4aaaa924c4 /Userland/Libraries/LibGUI | |
parent | 2f20f16292d82629980a4f18c42856d5e25e263d (diff) | |
download | serenity-0c230f5ff071d842f48d5a1447997531f1cd9b99.zip |
LibGUI: Callback with the clamped value of Sliders on a jump to cursor
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r-- | Userland/Libraries/LibGUI/Slider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Slider.cpp b/Userland/Libraries/LibGUI/Slider.cpp index 0f9a641c64..8c22b48b12 100644 --- a/Userland/Libraries/LibGUI/Slider.cpp +++ b/Userland/Libraries/LibGUI/Slider.cpp @@ -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; } |