mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00
Everywhere: Use 'increase_slider_by()' method from AbstractSlider
This method help us to avoid repeating the pattern 'set_value(value() + delta)'.
This commit is contained in:
parent
8b8f404146
commit
d53e1fa1fa
12 changed files with 19 additions and 19 deletions
|
@ -797,8 +797,8 @@ void AbstractView::on_automatic_scrolling_timer_fired()
|
|||
if (m_automatic_scroll_delta.is_null())
|
||||
return;
|
||||
|
||||
vertical_scrollbar().set_value(vertical_scrollbar().value() + m_automatic_scroll_delta.y());
|
||||
horizontal_scrollbar().set_value(horizontal_scrollbar().value() + m_automatic_scroll_delta.x());
|
||||
vertical_scrollbar().increase_slider_by(m_automatic_scroll_delta.y());
|
||||
horizontal_scrollbar().increase_slider_by(m_automatic_scroll_delta.x());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue