summaryrefslogtreecommitdiffstats
path: root/src/charts/qchartview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/charts/qchartview.cpp')
-rw-r--r--src/charts/qchartview.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/charts/qchartview.cpp b/src/charts/qchartview.cpp
index b8936f03..0da6e18a 100644
--- a/src/charts/qchartview.cpp
+++ b/src/charts/qchartview.cpp
@@ -261,6 +261,17 @@ void QChartView::mouseReleaseEvent(QMouseEvent *event)
#endif
}
+#ifdef Q_OS_MACOS
+#if QT_CONFIG(wheelevent)
+void QChartView::wheelEvent(QWheelEvent *event)
+{
+ Q_UNUSED(event)
+ // We just need to override wheelEvent, or scrolling won't work correctly on macOS trackpad
+ // (QTBUG-77403)
+}
+#endif
+#endif
+
/*!
Resizes and updates the chart area using the data specified by \a event.
*/