From 7aa312be3ce7ff8f7f4b8e484747565c2cae88a7 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 18 Oct 2016 16:07:40 +0200 Subject: PinchHandler: populate the translation property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's intended to be total translation of the target item relative to its declared position, independent of scale. Change-Id: I2b8f1bd62ba34c0200ea88b3461a45e1dcf61166 Reviewed-by: Shawn Rutledge Reviewed-by: Jan Arve Sæther --- src/quick/handlers/qquickpinchhandler.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/handlers/qquickpinchhandler.cpp') diff --git a/src/quick/handlers/qquickpinchhandler.cpp b/src/quick/handlers/qquickpinchhandler.cpp index 09e4f9f17c..c6294092e6 100644 --- a/src/quick/handlers/qquickpinchhandler.cpp +++ b/src/quick/handlers/qquickpinchhandler.cpp @@ -282,6 +282,7 @@ void QQuickPinchHandler::handlePointerEventImpl(QQuickPointerEvent *event) mat = mat * m_startMatrix; m_transform.setMatrix(mat); + m_translation = QPointF(mat.constData()[12], mat.constData()[13]); } emit updated(); -- cgit v1.2.3