Flickable containing PinchArea is unresponsive following pinch.
authorMartin Jones <martin.jones@nokia.com>
Fri, 10 Feb 2012 06:12:10 +0000 (16:12 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 10 Feb 2012 07:25:34 +0000 (08:25 +0100)
PinchArea was releasing the mouse grab when all touches were
released, causing the mouse release event to not be propagated
to its parents, who were then unable to correct their state.
Remove this code and allow the normal event handlers to do their
thing.

Change-Id: I367772ca13546425fed4bed4438084bdf3c74dde
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/items/qquickpincharea.cpp

index f50ca6d..674abdc 100644 (file)
@@ -326,9 +326,6 @@ void QQuickPinchArea::updatePinch()
         d->pinchRejected = false;
         d->stealMouse = false;
         setKeepMouseGrab(false);
-        QQuickCanvas *c = canvas();
-        if (c && c->mouseGrabberItem() == this)
-            ungrabMouse();
         return;
     }
     QTouchEvent::TouchPoint touchPoint1 = d->touchPoints.at(0);