diff options
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGUI/Scrollbar.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/InProcessWebView.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGUI/Scrollbar.cpp b/Userland/Libraries/LibGUI/Scrollbar.cpp index f5aed60fc6..7268a48b98 100644 --- a/Userland/Libraries/LibGUI/Scrollbar.cpp +++ b/Userland/Libraries/LibGUI/Scrollbar.cpp @@ -228,7 +228,7 @@ void Scrollbar::paint_event(PaintEvent& event) void Scrollbar::on_automatic_scrolling_timer_fired() { if (m_pressed_component == Component::DecrementButton && component_at_position(m_last_mouse_position) == Component::DecrementButton) { - set_value(value() - step()); + decrease_slider_by_steps(1); return; } if (m_pressed_component == Component::IncrementButton && component_at_position(m_last_mouse_position) == Component::IncrementButton) { diff --git a/Userland/Libraries/LibWeb/InProcessWebView.cpp b/Userland/Libraries/LibWeb/InProcessWebView.cpp index 9bcc0062f3..88cf8e9a9a 100644 --- a/Userland/Libraries/LibWeb/InProcessWebView.cpp +++ b/Userland/Libraries/LibWeb/InProcessWebView.cpp @@ -257,13 +257,13 @@ void InProcessWebView::keydown_event(GUI::KeyEvent& event) vertical_scrollbar().increase_slider_by_steps(1); break; case Key_Up: - vertical_scrollbar().set_value(vertical_scrollbar().value() - vertical_scrollbar().step()); + vertical_scrollbar().decrease_slider_by_steps(1); break; case Key_Left: horizontal_scrollbar().increase_slider_by_steps(1); break; case Key_Right: - horizontal_scrollbar().set_value(horizontal_scrollbar().value() - horizontal_scrollbar().step()); + horizontal_scrollbar().decrease_slider_by_steps(1); break; case Key_PageDown: vertical_scrollbar().increase_slider_by(frame_inner_rect().height()); |