@@ -404,7 +404,7 @@ void DirectionalDragArea::touchEvent_absent(QTouchEvent *event)
404 const QList<QTouchEvent::TouchPoint> &touchPoints = event->touchPoints();
404 const QList<QTouchEvent::TouchPoint> &touchPoints = event->touchPoints();
406 const QTouchEvent::TouchPoint *newTouchPoint = nullptr;
406 const QTouchEvent::TouchPoint *newTouchPoint = nullptr;
407− for (int i = 0; i < touchPoints.count(); ++i) {
407+ for (int i = 0; i < touchPoints.count() && allGood; ++i) {
408 const QTouchEvent::TouchPoint &touchPoint = touchPoints.at(i);
408 const QTouchEvent::TouchPoint &touchPoint = touchPoints.at(i);
409 if (touchPoint.state() == Qt::TouchPointPressed) {
409 if (touchPoint.state() == Qt::TouchPointPressed) {
410 if (newTouchPoint) {
410 if (newTouchPoint) {