mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 05:08:56 +00:00
GScrollBar: Allow scrolling the scrollbar by mouse-wheeling over it
This commit is contained in:
@@ -281,6 +281,14 @@ void GScrollBar::mouseup_event(GMouseEvent& event)
|
||||
update();
|
||||
}
|
||||
|
||||
void GScrollBar::mousewheel_event(GMouseEvent& event)
|
||||
{
|
||||
if (!is_scrollable())
|
||||
return;
|
||||
set_value(value() + event.wheel_delta());
|
||||
GWidget::mousewheel_event(event);
|
||||
}
|
||||
|
||||
void GScrollBar::set_automatic_scrolling_active(bool active)
|
||||
{
|
||||
if (active) {
|
||||
|
||||
Reference in New Issue
Block a user