uifw/ganes/src/HgScroller.cpp
branchRCL_3
changeset 17 a1caeb42b3a3
parent 15 c52421ed5f07
child 18 fcdfafb36fe7
equal deleted inserted replaced
15:c52421ed5f07 17:a1caeb42b3a3
  1129                 || ( iItems.Count() - CurrentIndex() > ItemsOnScreen() );
  1129                 || ( iItems.Count() - CurrentIndex() > ItemsOnScreen() );
  1130         
  1130         
  1131         TInt action = iPhysics->OngoingPhysicsAction();
  1131         TInt action = iPhysics->OngoingPhysicsAction();
  1132         if( action !=  CAknPhysics::EAknPhysicsActionNone && needsFeedback )
  1132         if( action !=  CAknPhysics::EAknPhysicsActionNone && needsFeedback )
  1133             {
  1133             {
  1134             TTouchFeedbackType type( ETouchFeedbackVibra );
       
  1135             if ( CAknPhysics::EAknPhysicsActionDragging == action )
       
  1136                 {
       
  1137                 type = TTouchFeedbackType(ETouchFeedbackVibra | ETouchFeedbackAudio);
       
  1138                 }
       
  1139 
       
  1140             MTouchFeedback* feedback = MTouchFeedback::Instance();
  1134             MTouchFeedback* feedback = MTouchFeedback::Instance();
  1141             if(feedback)
  1135             if(feedback)
  1142                 feedback->InstantFeedback( this, ETouchFeedbackSensitiveList,
  1136                 feedback->InstantFeedback( this, ETouchFeedbackSensitiveList,
  1143                                             type,
  1137                                            ETouchFeedbackVibra, TPointerEvent() );
  1144                                             TPointerEvent() );
       
  1145             }
  1138             }
  1146 
  1139 
  1147         if(iManager)
  1140         if(iManager)
  1148             {
  1141             {
  1149             iManager->SetPosition( CurrentIndex() );
  1142             iManager->SetPosition( CurrentIndex() );