diff options
-rw-r--r-- | Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/Slider.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp b/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp index 4f94fcca07..7281ea9425 100644 --- a/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp +++ b/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp @@ -149,7 +149,7 @@ void SoundPlayerWidgetAdvancedView::keydown_event(GUI::KeyEvent& event) m_stop_button->click(); if (event.key() == Key_Up) - m_volume_slider->set_value(m_volume_slider->value() + m_volume_slider->page_step()); + m_volume_slider->increase_slider_by_page_steps(1); if (event.key() == Key_Down) m_volume_slider->set_value(m_volume_slider->value() - m_volume_slider->page_step()); diff --git a/Userland/Libraries/LibGUI/Slider.cpp b/Userland/Libraries/LibGUI/Slider.cpp index 19f7c5cc43..a30cecbcb9 100644 --- a/Userland/Libraries/LibGUI/Slider.cpp +++ b/Userland/Libraries/LibGUI/Slider.cpp @@ -104,7 +104,7 @@ void Slider::mousedown_event(MouseEvent& event) auto knob_first_edge = knob_rect().first_edge_for_orientation(orientation()); auto knob_last_edge = knob_rect().last_edge_for_orientation(orientation()); if (mouse_offset > knob_last_edge) - set_value(value() + page_step()); + increase_slider_by_page_steps(1); else if (mouse_offset < knob_first_edge) set_value(value() - page_step()); } |