Kaynağa Gözat

LibGUI: Callback with the clamped value of Sliders on a jump to cursor

Zaggy1024 2 yıl önce
ebeveyn
işleme
0c230f5ff0
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Userland/Libraries/LibGUI/Slider.cpp

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