Skip to content

Commit 5c845db

Browse files
elyse0awesomekling
authored andcommitted
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.
1 parent 2462fb5 commit 5c845db

File tree

1 file changed

+1
-1
lines changed
  • Userland/Applications/SoundPlayer

1 file changed

+1
-1
lines changed

Userland/Applications/SoundPlayer/Common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AutoSlider final : public GUI::Slider {
1515
Function<void(int)> on_knob_released;
1616
void set_value(int value)
1717
{
18-
if (!knob_dragging())
18+
if (!knob_dragging() && !mouse_is_down())
1919
GUI::Slider::set_value(value);
2020
}
2121

0 commit comments

Comments
 (0)