taskswitcher/taskswitcherui/taskswitcherapp/src/tseventcontroler.cpp
branchRCL_3
changeset 11 ff572dfe6d86
parent 9 f966699dea19
child 12 9674c1a575e9
--- a/taskswitcher/taskswitcherui/taskswitcherapp/src/tseventcontroler.cpp	Fri Feb 19 22:42:37 2010 +0200
+++ b/taskswitcher/taskswitcherui/taskswitcherapp/src/tseventcontroler.cpp	Fri Mar 12 15:41:49 2010 +0200
@@ -112,9 +112,14 @@
         }
     else if(EAknTouchGestureFwTap == aEvent.Type())
         {
-        if( iPhysicsHelper->IsRunning())
+        if( IsPhysicsRunning() )
             {
+            TBool forwardTap = iPhysicsHelper->IsDragging();
             iPhysicsHelper->Stop();
+            if ( forwardTap )
+                {
+                iObserver.TapL(aEvent.Position());
+                }
             }
         else
             {
@@ -183,6 +188,15 @@
     }
 
 // -----------------------------------------------------------------------------
+// IsPhysicsRunning
+// -----------------------------------------------------------------------------
+//
+TBool CTsEventControler::IsPhysicsRunning()
+    {
+    return iPhysicsHelper->IsRunning();
+    }
+
+// -----------------------------------------------------------------------------
 // StopAnimation
 // -----------------------------------------------------------------------------
 //