Skip to content

Commit

Permalink
Handle TouchCancel events in MultiPointTouchArea.
Browse files Browse the repository at this point in the history
Ensure canceled has been emitted and the touch point press states have
been reset after a touch cancel event.

Change-Id: I421e8e4bdc6793b5ddc4b905ffecef91cf61ed9d
Reviewed-by: Martin Jones <martin.jones@qinetic.com.au>
  • Loading branch information
adenexter authored and denexter committed Sep 15, 2015
1 parent 20158f1 commit 362b450
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/quick/items/qquickmultipointtoucharea.cpp
Expand Up @@ -412,6 +412,12 @@ void QQuickMultiPointTouchArea::touchEvent(QTouchEvent *event)
}
break;
}
case QEvent::TouchCancel:
_stealMouse = false;
setKeepMouseGrab(false);
setKeepTouchGrab(false);
ungrabTouchPoints();
break;
default:
QQuickItem::touchEvent(event);
break;
Expand Down

0 comments on commit 362b450

Please sign in to comment.