uifw/EikStd/coctlsrc/aknstyluspopupmenuphysicshandler.cpp
branchRCL_3
changeset 4 8ca85d2f0db7
parent 0 2f259fa3e83a
child 9 aabf2c525e0f
equal deleted inserted replaced
0:2f259fa3e83a 4:8ca85d2f0db7
   242     {
   242     {
   243     TSize worldSize( iViewRect.Width(), iWorldHeight );
   243     TSize worldSize( iViewRect.Width(), iWorldHeight );
   244     TSize viewSize( iViewRect.Width(), iViewRect.Height() );
   244     TSize viewSize( iViewRect.Width(), iViewRect.Height() );
   245     
   245     
   246     iPhysics->InitPhysicsL( worldSize, viewSize, EFalse );
   246     iPhysics->InitPhysicsL( worldSize, viewSize, EFalse );
   247     iPhysics->UpdateViewWindowControl( iPopUpMenuContent );
   247     if ( iPopUpMenuContent->IsVisible() )
       
   248     	{
       
   249     	iPhysics->UpdateViewWindowControl( iPopUpMenuContent );
       
   250     	}
   248     }
   251     }
   249     
   252     
   250 
   253 
   251 
   254 
   252 // ---------------------------------------------------------------------------
   255 // ---------------------------------------------------------------------------
   380 
   383 
   381         iPrevOffset = Offset();
   384         iPrevOffset = Offset();
   382         iPrevTopmostItem = topmostItem;    
   385         iPrevTopmostItem = topmostItem;    
   383         
   386         
   384         //when appear or dispear a tiem,a feedback was given.
   387         //when appear or dispear a tiem,a feedback was given.
   385         if ( abs( iPrevOffset ) <= iViewRect.Height()
   388         if ( abs( iPrevOffset ) < iViewRect.Height() + iItemHeight
   386               && ( iPrevOffset/iItemHeight ) != iOffsetItemCount )
   389               && ( iPrevOffset/iItemHeight ) != iOffsetItemCount )
   387             {
   390             {
   388             if ( iPhysics )
   391             if ( iPhysics )
   389                 {
   392                 {
   390                 TTouchFeedbackType feedbackType = ETouchFeedbackVibra;
   393                 TTouchFeedbackType feedbackType = ETouchFeedbackVibra;
   410                         }
   413                         }
   411                     default:
   414                     default:
   412                         break;
   415                         break;
   413                     }
   416                     }
   414                 }
   417                 }
   415             }
   418             iOffsetItemCount = iPrevOffset/iItemHeight;
   416         iOffsetItemCount = iPrevOffset/iItemHeight;
   419             }
   417         }
   420         }
   418     }
   421     }
   419 
   422 
   420 // ---------------------------------------------------------------------------
   423 // ---------------------------------------------------------------------------
   421 // CAknStylusPopUpMenuPhysicsHandler::StopPhysics
   424 // CAknStylusPopUpMenuPhysicsHandler::StopPhysics