equal
deleted
inserted
replaced
68 CCoeControl::SetRect( aRect ); |
68 CCoeControl::SetRect( aRect ); |
69 } |
69 } |
70 |
70 |
71 void COverlayControl::HandlePointerEventL( const TPointerEvent& aPointerEvent ) |
71 void COverlayControl::HandlePointerEventL( const TPointerEvent& aPointerEvent ) |
72 { |
72 { |
73 if (aPointerEvent.iType == TPointerEvent::EButton1Down) |
73 if ( aPointerEvent.iType == TPointerEvent::EButton1Down ) |
74 { |
74 { |
75 // Give feedback to user (vibration) |
75 // Give feedback to user (vibration) |
76 iTouchFeedBack->InstantFeedback(this, ETouchFeedbackBasic); |
76 iTouchFeedBack->InstantFeedback( this, ETouchFeedbackBasic ); |
|
77 SetPointerCapture( ETrue ); |
77 } |
78 } |
78 |
|
79 CCoeControl::HandlePointerEventL( aPointerEvent ); |
79 CCoeControl::HandlePointerEventL( aPointerEvent ); |
80 |
80 if ( aPointerEvent.iType == TPointerEvent::EButton1Up ) |
81 if( iObserver ) |
|
82 { |
81 { |
83 // Do not let leaves disturb the system |
82 if ( Rect().Contains( aPointerEvent.iPosition ) && iObserver ) |
84 TRAP_IGNORE( |
83 { |
85 iObserver->HandleOverlayPointerEventL( this, aPointerEvent )); |
84 // Do not let leaves disturb the system - send event only if the poimter |
|
85 // was pressed on this control |
|
86 TRAP_IGNORE( iObserver->HandleOverlayPointerEventL( this, aPointerEvent ) ); |
|
87 } |
|
88 SetPointerCapture( EFalse ); |
86 } |
89 } |
87 } |
90 } |
88 |
91 |
89 void COverlayControl::MakeVisible( TBool aVisible ) |
92 void COverlayControl::MakeVisible( TBool aVisible ) |
90 { |
93 { |