mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
GScrollBar: Scrolling with the mouse wheel should use step increments
This commit is contained in:
parent
1adec6d54b
commit
b4a2bb9383
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ void GScrollBar::mousewheel_event(GMouseEvent& event)
|
||||||
{
|
{
|
||||||
if (!is_scrollable())
|
if (!is_scrollable())
|
||||||
return;
|
return;
|
||||||
set_value(value() + event.wheel_delta());
|
set_value(value() + event.wheel_delta() * m_step);
|
||||||
GWidget::mousewheel_event(event);
|
GWidget::mousewheel_event(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue