emailuis/uicomponents/src/fstreevisualizerbase.cpp
branchRCL_3
changeset 20 efd4f1afd43e
parent 17 67369d1b217f
child 22 d620048b4810
--- a/emailuis/uicomponents/src/fstreevisualizerbase.cpp	Wed Jun 09 09:22:57 2010 +0300
+++ b/emailuis/uicomponents/src/fstreevisualizerbase.cpp	Mon Jun 21 15:20:54 2010 +0300
@@ -78,6 +78,7 @@
 #include "cuicscrollbar.h"
 
 #include <aknphysics.h>
+#include <touchfeedback.h> // for MTouchFeedback
 
 
 //CONSTANTS
@@ -1552,7 +1553,8 @@
         INFO_1("visual: $%x", aEvent.Visual());
         if (KErrNotFound != id || type == TPointerEvent::EDrag ||
                 type  == TPointerEvent::EButtonRepeat ||
-                type  == TPointerEvent::EButton1Up)
+                type  == TPointerEvent::EButton1Up ||
+                type  == TPointerEvent::EButton1Down)
             {
             switch (type)
                 {
@@ -4078,9 +4080,12 @@
                 if ( iMarqueeType != EFsTextMarqueeNone )
                     {
                     vis = iTreeData->ItemVisualizer( iFocusedItem );
-                    vis->MarqueeL( iMarqueeType, iMarqueeSpeed,
-                    		iMarqueStartDelay, iMarqueCycleStartDelay,
-                            iMarqueeRepetitions );
+                    if (vis)
+                        {
+                        vis->MarqueeL( iMarqueeType, iMarqueeSpeed,
+                    	        iMarqueStartDelay, iMarqueCycleStartDelay,
+                                iMarqueeRepetitions );
+                        }
                     }
                 }
             else
@@ -5207,6 +5212,12 @@
                 MFsTreeVisualizerObserver::EFsTreeItemTouchAction, aItemId, aPoint );
             }
         }
+    // Added for tactile feedback
+    MTouchFeedback* feedback = MTouchFeedback::Instance();
+    if( feedback )
+        {
+        feedback->InstantFeedback( ETouchFeedbackBasic );
+        }
     }
 
 // CFsTreeVisualizerBase::CDragHandler