mobilemessaging/unieditor/application/src/UniEditorAppUi.cpp
branchRCL_3
changeset 9 1d7827e39b52
parent 2 0bf1d54f37d9
child 17 caea42e26caa
--- a/mobilemessaging/unieditor/application/src/UniEditorAppUi.cpp	Tue Feb 02 00:08:43 2010 +0200
+++ b/mobilemessaging/unieditor/application/src/UniEditorAppUi.cpp	Fri Feb 19 22:47:38 2010 +0200
@@ -1788,14 +1788,23 @@
             {
             TPointerEvent* event = static_cast<TPointerEvent*>( aArg2 );
             CMsgBaseControl* control = static_cast<CMsgBaseControl*>( aArg1 );
-            if(iLongTapDetector)
-            {
-                iLongTapDetector->EnableLongTapAnimation(ETrue);
-                iLongTapDetector->PointerEventL( *event );
-            }
+            
             if ( event->iType == TPointerEvent::EButton1Down )
                 {
                 iFocusedControl = control;
+                if ( control && 
+                        ( control->ControlId() == EMsgComponentIdAudio ||
+                                control->ControlId() == EMsgComponentIdImage ||
+                                control->ControlId() == EMsgComponentIdVideo ||
+                                control->ControlId() == EMsgComponentIdAttachment ||
+                                control->ControlId() == EMsgComponentIdSvg ) )
+                    {
+                    if(iLongTapDetector)
+                        {
+                        iLongTapDetector->EnableLongTapAnimation(ETrue);
+                        iLongTapDetector->PointerEventL( *event );
+                        }
+                    }
                 iTapConsumed = EFalse;
                 }
             else if ( (!iTapConsumed) && (event->iType == TPointerEvent::EButton1Up) )