From 9fbf0b7b0a88a187a46805342897faec042e3d56 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Thu, 15 Sep 2022 13:15:09 +0200 Subject: [PATCH] fix(simu): prevent mouse wheel event to be handled twice (#2319) Fixes #2188 --- companion/src/simulation/simulateduiwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/companion/src/simulation/simulateduiwidget.cpp b/companion/src/simulation/simulateduiwidget.cpp index 0f3f0caa2..8fcac00b0 100644 --- a/companion/src/simulation/simulateduiwidget.cpp +++ b/companion/src/simulation/simulateduiwidget.cpp @@ -168,6 +168,7 @@ void SimulatedUIWidget::wheelEvent(QWheelEvent * event) // steps can be negative or positive to determine direction (negative is UP/LEFT scroll) QPoint numSteps = event->angleDelta() / 8 / 15 * -1; // one step per 15deg emit simulatorWheelEvent(numSteps.y()); + event->accept(); } void SimulatedUIWidget::mousePressEvent(QMouseEvent * event)