[Bf-blender-cvs] [23f3c30b584] master: Fix T64138: Windows Ink continuous grab at window edge.

Nicholas Rishel noreply at git.blender.org
Tue Nov 3 04:04:09 CET 2020


Commit: 23f3c30b5843c69c0eb2f531793a470fadb612e3
Author: Nicholas Rishel
Date:   Mon Nov 2 16:41:40 2020 -0800
Branches: master
https://developer.blender.org/rB23f3c30b5843c69c0eb2f531793a470fadb612e3

Fix T64138: Windows Ink continuous grab at window edge.

WM_POINTERLEAVE occurs when the pen goes out of range or when a
hovering pen leaves the window's boundary. When leaving the window
boundary the xy position is invalid for some Wacom devices.

This change removes creation of GHOST_EventCursor during
WM_POINTERLEAVE events. This prevents unexpected jumping behavior
during continuous grab.

===================================================================

M	intern/ghost/intern/GHOST_SystemWin32.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index 70933bd668e..b820358600c 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1137,11 +1137,6 @@ void GHOST_SystemWin32::processPointerEvent(
       break;
     case WM_POINTERLEAVE:
       window->m_tabletInRange = false;
-      system->pushEvent(new GHOST_EventButton(pointerInfo[0].time,
-                                              GHOST_kEventCursorMove,
-                                              window,
-                                              pointerInfo[0].buttonMask,
-                                              pointerInfo[0].tabletData));
       break;
     default:
       break;



More information about the Bf-blender-cvs mailing list