qstmgesturelib/recognisers/qstmzoomgesturerecogniser.cpp
changeset 16 3c88a81ff781
parent 3 0954f5dd2cd0
--- a/qstmgesturelib/recognisers/qstmzoomgesturerecogniser.cpp	Thu Sep 23 15:32:11 2010 -0400
+++ b/qstmgesturelib/recognisers/qstmzoomgesturerecogniser.cpp	Fri Oct 15 17:30:59 2010 -0400
@@ -91,7 +91,7 @@
                         m_zoomtype = EZoomOut ;
                     }
                     state = ELockToThisGesture ;    // keep zooming until release
-                    QStm_TwoPointGesture pgest(KUid, m_startingtouch, m_startingtouch);
+                    QStm_TwoPointGesture pgest(KUid, m_startingtouch, m_startingtouch, puie->timestamp());
                     pgest.setLogging(m_loggingenabled) ;
                     pgest.setDetails(&m_delta) ;
                     pgest.setName(m_zoomtype == EZoomIn ? QString("ZoomIn") : QString("ZoomOut")) ;
@@ -114,7 +114,7 @@
             if (eventCode == qstmUiEventEngine::ERelease) { // ERelease stops zooming
                 // We were zooming, but if there are multiple touches we are not any more
             	const qstmUiEventEngine::QStm_UiEventIf* puie = pge->getUiEvents(0);
-            	QStm_TwoPointGesture pgest = QStm_TwoPointGesture(KUid, puie->currentXY(), m_startingtouch);
+                QStm_TwoPointGesture pgest = QStm_TwoPointGesture(KUid, puie->currentXY(), m_startingtouch, puie->timestamp());
                 m_listener->gestureExit(pgest) ; // should we call this or not?
             }
             else {   // all other UI events will keep on zooming
@@ -128,7 +128,7 @@
 
                 // Inform listener only if there is something to say
                 if (m_delta != 0) {
-                    QStm_TwoPointGesture pgest = QStm_TwoPointGesture(KUid, p, m_startingtouch);
+                    QStm_TwoPointGesture pgest = QStm_TwoPointGesture(KUid, p, m_startingtouch, puie->timestamp());
                     pgest.setLogging(m_loggingenabled) ;
                     pgest.setDetails(&m_delta) ;
                     pgest.setName(m_zoomtype == EZoomIn ? QString("ZoomIn") : QString("ZoomOut")) ;
@@ -144,7 +144,7 @@
         if (m_zooming) {
             // We were zooming, but if there are multiple touches we are not any more
         	const qstmUiEventEngine::QStm_UiEventIf* puie = pge->getUiEvents(0);
-        	QStm_TwoPointGesture pgest = QStm_TwoPointGesture(KUid, puie->currentXY(), m_startingtouch);
+            QStm_TwoPointGesture pgest = QStm_TwoPointGesture(KUid, puie->currentXY(), m_startingtouch, puie->timestamp());
         	pgest.setTarget(puie->target());
             m_listener->gestureExit(pgest) ; // should we call this or not?
         }
@@ -159,7 +159,7 @@
     if (m_zooming) {
         m_zooming = false ;
     	const qstmUiEventEngine::QStm_UiEventIf* puie = pge->getUiEvents(0);
-    	QStm_TwoPointGesture pgest = QStm_TwoPointGesture(KUid, puie->currentXY(), m_startingtouch);
+        QStm_TwoPointGesture pgest = QStm_TwoPointGesture(KUid, puie->currentXY(), m_startingtouch, puie->timestamp());
     	pgest.setTarget(puie->target());
         m_listener->gestureExit(pgest) ; // should we call this or not?
     }