taskswitcher/taskswitcherui/taskswitcherapp/src/tsphysicsengine.cpp
branchRCL_3
changeset 26 1b758917cafc
parent 12 9674c1a575e9
equal deleted inserted replaced
25:137ebc85284b 26:1b758917cafc
   115         }
   115         }
   116     else //AknTouchGestureFw::EAknTouchGestureFwStop
   116     else //AknTouchGestureFw::EAknTouchGestureFwStop
   117         {
   117         {
   118         TPoint drag(iStartPosition - aEvent.CurrentPosition());
   118         TPoint drag(iStartPosition - aEvent.CurrentPosition());
   119         iPhysics->StartPhysics(drag, iStartTime);
   119         iPhysics->StartPhysics(drag, iStartTime);
       
   120         if( Abs(drag.iX) < iPhysics->DragThreshold() &&
       
   121             (TInt)CAknPhysics::EAknPhysicsActionBouncing != 
       
   122             iPhysics->OngoingPhysicsAction() )
       
   123             {
       
   124             iPhysics->StopPhysics();
       
   125             }
   120         }
   126         }
   121     }
   127     }
   122 
   128 
   123 // -----------------------------------------------------------------------------
   129 // -----------------------------------------------------------------------------
   124 // CTsPhysicsEngine::Stop
   130 // CTsPhysicsEngine::Stop