]> khamidou — GitHub mirrors - electron.git/commitdiff
enable pointer events.
authorKarim Hamidou <khamidou@gmail.com>
Mon, 15 Feb 2016 20:32:04 +0000 (12:32 -0800)
committerKarim Hamidou <khamidou@gmail.com>
Mon, 15 Feb 2016 20:32:04 +0000 (12:32 -0800)
atom/browser/native_window_views_win.cc

index fe3225e5a4214a600d5d0c659a20b94fb1c5434f..e0437d5f224315b7ec1d3d2a0ae4cefd2a3d984d 100644 (file)
@@ -86,6 +86,10 @@ bool NativeWindowViews::PreHandleMSG(
 
   BOOL bResult = FALSE;
 
+  if(!IsMouseInPointerEnabled()) {
+    EnableMouseInPointer(true);
+  }
+
   switch (message) {
     case WM_COMMAND:
       // Handle thumbar button click message.
@@ -105,7 +109,6 @@ bool NativeWindowViews::PreHandleMSG(
       return false;
     }
 
-    /*
     case WM_POINTERDOWN: {
         puts("Pointer down");
         NotifyWindowScrollTouchBegin();
@@ -117,7 +120,6 @@ bool NativeWindowViews::PreHandleMSG(
         NotifyWindowScrollTouchEnd();
         return false;
     }
-    */
 
     default:
       return false;