browserui/browser/FeedsSrc/FeedsEditFeedDialog.cpp
branchRCL_3
changeset 48 5c11946e75b3
parent 45 dbd79466b1ed
child 50 c9249d037530
--- a/browserui/browser/FeedsSrc/FeedsEditFeedDialog.cpp	Mon Mar 15 12:40:52 2010 +0200
+++ b/browserui/browser/FeedsSrc/FeedsEditFeedDialog.cpp	Wed Mar 31 21:35:49 2010 +0300
@@ -40,6 +40,7 @@
 #include <AknRadioButtonSettingPage.h>
 
 #include "FeedsEditFeedDialog.h"
+#define   pixelOffset   36
 
 //Constants
 const TInt KAutoUpdatingOff = 0;
@@ -135,11 +136,30 @@
         }
     else
         {
-        CAknForm::HandlePointerEventL(aPointerEvent);
-        if ((iSelectedDlgLine == EFeedsEditAutomaticUpdatingId) && (aPointerEvent.iType == TPointerEvent::EButton1Up))
+        CAknForm::HandlePointerEventL(aPointerEvent);        
+        if ( aPointerEvent.iType == TPointerEvent::EButton1Down)
             {
-            HandleFreqCmdL();
+                iPointerEvent =  aPointerEvent;
             }
+        else if ( aPointerEvent.iType == TPointerEvent::EDrag )
+                 {
+                 if((Abs(iPointerEvent.iPosition.iX - aPointerEvent.iPosition.iX) > pixelOffset ) ||
+                    (Abs(iPointerEvent.iPosition.iY - aPointerEvent.iPosition.iY) > pixelOffset ))
+                     {
+                         iDrag = ETrue;
+                     }
+                 }
+        else if ((iSelectedDlgLine == EFeedsEditAutomaticUpdatingId) && (aPointerEvent.iType == TPointerEvent::EButton1Up))
+                 {
+                 if(!iDrag)
+                    {
+                        HandleFreqCmdL();
+                    }
+                 else
+                    {
+                        iDrag = EFalse;
+                    }
+                 }
         }
     }