summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-12-13 06:09:52 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-12-13 06:09:52 (GMT)
commitad653d169aaecf6273787a01797c7647a13eec04 (patch)
treecf2be6b60e321e5371ec84afa6655d0d44052c63 /src
parent18b940539d0633f30ae055feedb48aeb15969814 (diff)
downloadQt-ad653d169aaecf6273787a01797c7647a13eec04.zip
Qt-ad653d169aaecf6273787a01797c7647a13eec04.tar.gz
Qt-ad653d169aaecf6273787a01797c7647a13eec04.tar.bz2
Fix dragging Flickable back over start point.
Change 810e21d9e404aa2fcb602cb68bfd892387b234e7 caused regression. Once stealMouse is set to true is must stay that way until release. Task-number: QTBUG-15998 Reviewed-by: Michael Brasser
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeflickable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeflickable.cpp b/src/declarative/graphicsitems/qdeclarativeflickable.cpp
index 377f3b5..f1d92c5 100644
--- a/src/declarative/graphicsitems/qdeclarativeflickable.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeflickable.cpp
@@ -700,8 +700,8 @@ void QDeclarativeFlickablePrivate::handleMouseMoveEvent(QGraphicsSceneMouseEvent
bool rejectY = false;
bool rejectX = false;
- bool stealY = false;
- bool stealX = false;
+ bool stealY = stealMouse;
+ bool stealX = stealMouse;
if (q->yflick()) {
int dy = int(event->pos().y() - pressPos.y());