mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
GScrollBar: Scrolling with the mouse wheel should use step increments
This commit is contained in:
parent
1adec6d54b
commit
b4a2bb9383
Notes:
sideshowbarker
2024-07-19 12:15:23 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b4a2bb9383d
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ void GScrollBar::mousewheel_event(GMouseEvent& event)
|
|||
{
|
||||
if (!is_scrollable())
|
||||
return;
|
||||
set_value(value() + event.wheel_delta());
|
||||
set_value(value() + event.wheel_delta() * m_step);
|
||||
GWidget::mousewheel_event(event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue