uifw/AvKon/src/aknindicatorpopupcontent.cpp
branchRCL_3
changeset 59 978afdc0236f
parent 56 d48ab3b357f1
child 72 a5e7a4f63858
equal deleted inserted replaced
56:d48ab3b357f1 59:978afdc0236f
   603         {
   603         {
   604         CBase* currentFocusedItem = NULL;
   604         CBase* currentFocusedItem = NULL;
   605         switch ( aPointerEvent.iType )
   605         switch ( aPointerEvent.iType )
   606             {
   606             {
   607             case TPointerEvent::EButton1Down:
   607             case TPointerEvent::EButton1Down:
       
   608                 iOrdinal = DrawableWindow()->OrdinalPosition();
   608                 // Set flag that down was inside the popup.
   609                 // Set flag that down was inside the popup.
   609                 iFlags |= EAknIndicatorPopupContentButton1Down;
   610                 iFlags |= EAknIndicatorPopupContentButton1Down;
   610                 iPreviousPressedDownItem = NULL;
   611                 iPreviousPressedDownItem = NULL;
   611                 
   612                 
   612                 if ( iClock->Rect().Contains( aPointerEvent.iPosition ))
   613                 if ( iClock->Rect().Contains( aPointerEvent.iPosition ))
   674                     {
   675                     {
   675                     // Up happened, reset button down flag.
   676                     // Up happened, reset button down flag.
   676                     iFlags &= ( ~EAknIndicatorPopupContentButton1Down );
   677                     iFlags &= ( ~EAknIndicatorPopupContentButton1Down );
   677                     iEnablePressedDownState = EFalse;
   678                     iEnablePressedDownState = EFalse;
   678 
   679 
       
   680                     if ( iOrdinal != DrawableWindow()->OrdinalPosition() )
       
   681                         {
       
   682                         Window().Invalidate( iPressedDownRect );
       
   683                         break;
       
   684                         }
       
   685 
   679                     if ( iBatteryPlugin &&
   686                     if ( iBatteryPlugin &&
   680                          iBatteryArea.Contains( aPointerEvent.iPosition ) )
   687                          iBatteryArea.Contains( aPointerEvent.iPosition ) )
   681                         {
   688                         {
   682                         ReportEventL(
   689                         ReportEventL(
   683                             static_cast<MCoeControlObserver::TCoeEvent>(
   690                             static_cast<MCoeControlObserver::TCoeEvent>(