From 5c845dbfcbb8d76815db00e1392389fb721c4e19 Mon Sep 17 00:00:00 2001 From: Elyse Date: Mon, 1 Nov 2021 23:49:19 -0600 Subject: [PATCH] SoundPlayer: Allow playback progress slider jump to cursor This fix allows us to move the knob wherever we click inside the slider. The 'jump_to_cursor()' mechanism wasn't working properly because the player was overwriting the value we had just clicked. --- Userland/Applications/SoundPlayer/Common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/SoundPlayer/Common.h b/Userland/Applications/SoundPlayer/Common.h index 75f8aed2e5..25f03efa07 100644 --- a/Userland/Applications/SoundPlayer/Common.h +++ b/Userland/Applications/SoundPlayer/Common.h @@ -15,7 +15,7 @@ public: Function on_knob_released; void set_value(int value) { - if (!knob_dragging()) + if (!knob_dragging() && !mouse_is_down()) GUI::Slider::set_value(value); }