summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorZaggy1024 <zaggy1024@gmail.com>2023-02-12 01:19:17 -0600
committerJelle Raaijmakers <jelle@gmta.nl>2023-02-12 09:53:05 +0100
commit0c230f5ff071d842f48d5a1447997531f1cd9b99 (patch)
tree97f85d7c721cc8fe77f57768a5c52b4aaaa924c4 /Userland
parent2f20f16292d82629980a4f18c42856d5e25e263d (diff)
downloadserenity-0c230f5ff071d842f48d5a1447997531f1cd9b99.zip
LibGUI: Callback with the clamped value of Sliders on a jump to cursor
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGUI/Slider.cpp2
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;
}