Gui: [skip ci] disable workaround to avoid handling an event twice because it leads to a regression on macOS

This commit is contained in:
wmayer
2020-04-03 15:11:24 +02:00
parent 0d8681a64a
commit dbb095a47c

View File

@@ -1002,10 +1002,17 @@ bool QuarterWidget::viewportEvent(QEvent* event)
bool ok = QGraphicsView::viewportEvent(event);
// Avoid that wheel events are handled twice
// https://forum.freecadweb.org/viewtopic.php?f=3&t=44822
// However, this workaround seems to cause a regression on macOS
// so it's disabled for this platform.
// https://forum.freecadweb.org/viewtopic.php?f=4&t=44855
#if defined(Q_OS_MAC)
Q_UNUSED(ok)
#else
if (event->type() == QEvent::Wheel) {
event->setAccepted(ok);
return ok;
}
#endif
return false;
}
}