1786 } |
1786 } |
1787 case MMsgEditorObserver::EMsgControlPointerEvent: |
1787 case MMsgEditorObserver::EMsgControlPointerEvent: |
1788 { |
1788 { |
1789 TPointerEvent* event = static_cast<TPointerEvent*>( aArg2 ); |
1789 TPointerEvent* event = static_cast<TPointerEvent*>( aArg2 ); |
1790 CMsgBaseControl* control = static_cast<CMsgBaseControl*>( aArg1 ); |
1790 CMsgBaseControl* control = static_cast<CMsgBaseControl*>( aArg1 ); |
1791 if(iLongTapDetector) |
1791 |
1792 { |
|
1793 iLongTapDetector->EnableLongTapAnimation(ETrue); |
|
1794 iLongTapDetector->PointerEventL( *event ); |
|
1795 } |
|
1796 if ( event->iType == TPointerEvent::EButton1Down ) |
1792 if ( event->iType == TPointerEvent::EButton1Down ) |
1797 { |
1793 { |
1798 iFocusedControl = control; |
1794 iFocusedControl = control; |
|
1795 if ( control && |
|
1796 ( control->ControlId() == EMsgComponentIdAudio || |
|
1797 control->ControlId() == EMsgComponentIdImage || |
|
1798 control->ControlId() == EMsgComponentIdVideo || |
|
1799 control->ControlId() == EMsgComponentIdAttachment || |
|
1800 control->ControlId() == EMsgComponentIdSvg ) ) |
|
1801 { |
|
1802 if(iLongTapDetector) |
|
1803 { |
|
1804 iLongTapDetector->EnableLongTapAnimation(ETrue); |
|
1805 iLongTapDetector->PointerEventL( *event ); |
|
1806 } |
|
1807 } |
1799 iTapConsumed = EFalse; |
1808 iTapConsumed = EFalse; |
1800 } |
1809 } |
1801 else if ( (!iTapConsumed) && (event->iType == TPointerEvent::EButton1Up) ) |
1810 else if ( (!iTapConsumed) && (event->iType == TPointerEvent::EButton1Up) ) |
1802 { |
1811 { |
1803 iTapConsumed = ETrue; |
1812 iTapConsumed = ETrue; |