diff --git a/examples/zoomlinechart/chart.cpp b/examples/zoomlinechart/chart.cpp index fc873c3..dbedb8d 100644 --- a/examples/zoomlinechart/chart.cpp +++ b/examples/zoomlinechart/chart.cpp @@ -49,7 +49,7 @@ bool Chart::gestureEvent(QGestureEvent *event) { if (QGesture *gesture = event->gesture(Qt::PanGesture)) { QPanGesture *pan = static_cast(gesture); - QChart::scroll(pan->delta().x(), pan->delta().y()); + QChart::scroll(-(pan->delta().x()), pan->delta().y()); } if (QGesture *gesture = event->gesture(Qt::PinchGesture)) {