mobilemessaging/unieditor/application/src/UniEditorAppUi.cpp
branchCompilerCompatibility
changeset 20 43cbef41dd6d
parent 9 1d7827e39b52
child 17 caea42e26caa
--- a/mobilemessaging/unieditor/application/src/UniEditorAppUi.cpp	Sun Mar 28 16:36:08 2010 +0100
+++ b/mobilemessaging/unieditor/application/src/UniEditorAppUi.cpp	Mon Mar 29 12:25:56 2010 +0100
@@ -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) )