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.
This commit is contained in:
Nicholas Rishel 2020-11-02 16:41:40 -08:00
parent 3049704b15
commit 23f3c30b58
Notes: blender-bot 2023-02-14 05:36:11 +01:00
Referenced by issue #64138, Wacom tablet messes up Continues Grab
1 changed files with 0 additions and 5 deletions

View File

@ -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;