Bug 473662 - disable tap-and-hold on windows mobile. r=emaijala, sr=pavlov
authorDoug Turner <dougt@meer.net>
Wed, 28 Jan 2009 17:27:52 -0800
changeset 23062 1893ce01b38fc0e268822a2b1b22fa00d78476b7
parent 23061 a7858cfcb2ee061432f8b2461b1725f0f81591b9
child 23063 8d3abd549e9d08a8ad6843b29501a0ee66e2ed50
push id581
push userdougt@mozilla.com
push dateThu, 29 Jan 2009 15:14:53 +0000
reviewersemaijala, pavlov
bugs473662
milestone1.9.1b3pre
Bug 473662 - disable tap-and-hold on windows mobile. r=emaijala, sr=pavlov
widget/src/windows/nsWindow.cpp
--- a/widget/src/windows/nsWindow.cpp
+++ b/widget/src/windows/nsWindow.cpp
@@ -4577,35 +4577,16 @@ PRBool nsWindow::ProcessMessage(UINT msg
       }
     }
     break;
 
     case WM_LBUTTONDOWN:
       //SetFocus(); // this is bad
       //RelayMouseEvent(msg,wParam, lParam);
     {
-#ifdef WINCE
-      if (!gRollupListener && !gRollupWidget) 
-      {
-        SHRGINFO  shrg;
-        shrg.cbSize = sizeof(shrg);
-        shrg.hwndClient = mWnd;
-        shrg.ptDown.x = LOWORD(lParam);
-        shrg.ptDown.y = HIWORD(lParam);
-        shrg.dwFlags = SHRG_RETURNCMD;
-        if (SHRecognizeGesture(&shrg)  == GN_CONTEXTMENU)
-        {
-          result = DispatchMouseEvent(NS_MOUSE_BUTTON_DOWN, wParam, lParam,
-                                       PR_FALSE, nsMouseEvent::eRightButton);
-          result = DispatchMouseEvent(NS_MOUSE_BUTTON_UP, wParam, lParam,
-                                      PR_FALSE, nsMouseEvent::eRightButton);
-          break;
-        }
-      }
-#endif
       // check whether IME window do mouse operation
       if (IMEMouseHandling(IMEMOUSE_LDOWN, lParam))
         break;
 
       result = DispatchMouseEvent(NS_MOUSE_BUTTON_DOWN, wParam, lParam,
                                   PR_FALSE, nsMouseEvent::eLeftButton);
       DispatchPendingEvents();
     }