From ef178f6be5d76d6e0bd4077019aa1915209432e4 Mon Sep 17 00:00:00 2001 From: Denis Dzyubenko Date: Tue, 26 May 2009 16:05:21 +0200 Subject: When converting a touch event to graphicsscene event use lastPos instead of screenPos Reviewed-By: Bradley T. Hughes --- src/gui/graphicsview/qgraphicsview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp index 1c081cf..a96eabf 100644 --- a/src/gui/graphicsview/qgraphicsview.cpp +++ b/src/gui/graphicsview/qgraphicsview.cpp @@ -320,7 +320,7 @@ static void qt_convertTouchEventToGraphicsSceneTouchEvent(QGraphicsViewPrivate * // the scene will set the startPos before delivering to an item touchPoint->setStartScenePos(d->mapToScene(touchPoint->startPos())); // the scene will set the lastPos before delivering to an item - touchPoint->setLastScenePos(d->mapToScene(touchPoint->lastScreenPos())); + touchPoint->setLastScenePos(d->mapToScene(touchPoint->lastPos())); // lastScreenPos is already set in the originalTouchPoint touchPoints.append(touchPoint); -- cgit v0.12