summaryrefslogtreecommitdiffstats
path: root/src/input/backend/mouseeventfilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/backend/mouseeventfilter.cpp')
-rw-r--r--src/input/backend/mouseeventfilter.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/input/backend/mouseeventfilter.cpp b/src/input/backend/mouseeventfilter.cpp
index be60e47c9..13db38af6 100644
--- a/src/input/backend/mouseeventfilter.cpp
+++ b/src/input/backend/mouseeventfilter.cpp
@@ -67,9 +67,13 @@ bool MouseEventFilter::eventFilter(QObject *obj, QEvent *e)
case QEvent::MouseButtonPress:
case QEvent::MouseButtonRelease:
case QEvent::MouseMove:
- // Store event to be processed later on in an InputAspect job
+ // Creates copy and store event to be processed later on in an InputAspect job
m_inputHandler->appendMouseEvent(QMouseEvent(*static_cast<QMouseEvent *>(e)));
break;
+ case QEvent::Wheel:
+ // Creates copy and store event to be processed later on in an InputAspect job
+ m_inputHandler->appendWheelEvent(QWheelEvent(*static_cast<QWheelEvent *>(e)));
+ break;
default:
break;
}