summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/ScrollableWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/ScrollableWidget.cpp')
-rw-r--r--Libraries/LibGUI/ScrollableWidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibGUI/ScrollableWidget.cpp b/Libraries/LibGUI/ScrollableWidget.cpp
index 42fc5ebf25..622876d0ab 100644
--- a/Libraries/LibGUI/ScrollableWidget.cpp
+++ b/Libraries/LibGUI/ScrollableWidget.cpp
@@ -56,6 +56,10 @@ ScrollableWidget::~ScrollableWidget()
void ScrollableWidget::mousewheel_event(MouseEvent& event)
{
+ if (!m_scrollbars_enabled) {
+ event.ignore();
+ return;
+ }
// FIXME: The wheel delta multiplier should probably come from... somewhere?
vertical_scrollbar().set_value(vertical_scrollbar().value() + event.wheel_delta() * 20);
}