Skip to content

Commit

Permalink
Fix MouseArea stealing mouse grab after release.
Browse files Browse the repository at this point in the history
This was preventing child items from receiving a release event and
making the MouseArea the mouseGrabber when the mouse wasn't depressed.

Change-Id: I93a9f4d6bd94041879ea13efda40c8d1dbb63a88
Reviewed-by: Mikko Harju <mikko.harju@jolla.com>
Reviewed-by: Martin Jones <martin.jones@qinetic.com.au>
  • Loading branch information
denexter committed Sep 15, 2015
1 parent 57f02f0 commit 20158f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/quick/items/qquickmousearea.cpp
Expand Up @@ -867,6 +867,7 @@ bool QQuickMouseArea::sendMouseEvent(QMouseEvent *event)
break;
case QEvent::MouseButtonRelease:
mouseReleaseEvent(&mouseEvent);
stealThisEvent = d->stealMouse;
break;
default:
break;
Expand Down

0 comments on commit 20158f1

Please sign in to comment.