taskswitcher/taskswitcherui/taskswitcherapp/src/tseventcontroler.cpp
branchRCL_3
changeset 15 ff572dfe6d86
parent 9 f966699dea19
child 16 9674c1a575e9
equal deleted inserted replaced
9:f966699dea19 15:ff572dfe6d86
   110         {
   110         {
   111         iObserver.LongTapL(aEvent.Position());
   111         iObserver.LongTapL(aEvent.Position());
   112         }
   112         }
   113     else if(EAknTouchGestureFwTap == aEvent.Type())
   113     else if(EAknTouchGestureFwTap == aEvent.Type())
   114         {
   114         {
   115         if( iPhysicsHelper->IsRunning())
   115         if( IsPhysicsRunning() )
   116             {
   116             {
       
   117             TBool forwardTap = iPhysicsHelper->IsDragging();
   117             iPhysicsHelper->Stop();
   118             iPhysicsHelper->Stop();
       
   119             if ( forwardTap )
       
   120                 {
       
   121                 iObserver.TapL(aEvent.Position());
       
   122                 }
   118             }
   123             }
   119         else
   124         else
   120             {
   125             {
   121             iObserver.TapL(aEvent.Position());
   126             iObserver.TapL(aEvent.Position());
   122             }
   127             }
   181     {
   186     {
   182     iPhysicsHelper->ReInitPhysicsL( aWorldSize, aViewSize, aLandscape);
   187     iPhysicsHelper->ReInitPhysicsL( aWorldSize, aViewSize, aLandscape);
   183     }
   188     }
   184 
   189 
   185 // -----------------------------------------------------------------------------
   190 // -----------------------------------------------------------------------------
       
   191 // IsPhysicsRunning
       
   192 // -----------------------------------------------------------------------------
       
   193 //
       
   194 TBool CTsEventControler::IsPhysicsRunning()
       
   195     {
       
   196     return iPhysicsHelper->IsRunning();
       
   197     }
       
   198 
       
   199 // -----------------------------------------------------------------------------
   186 // StopAnimation
   200 // StopAnimation
   187 // -----------------------------------------------------------------------------
   201 // -----------------------------------------------------------------------------
   188 //
   202 //
   189 void CTsEventControler::StopAnimation()
   203 void CTsEventControler::StopAnimation()
   190     {
   204     {