From 0ee4b0b9650d953bc5a6e84ee5c91a8c887f9753 Mon Sep 17 00:00:00 2001 From: Nicholas Rishel Date: Mon, 25 May 2020 21:19:28 -0700 Subject: Before a wintab button event is generated, generate a GHOST mouse move event to the button down location as this should be a more accurate point of contact than the last mouse move event. Signed-off-by: Nicholas Rishel --- intern/ghost/intern/GHOST_SystemWin32.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/ghost') diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 3af504e6803..7a52933b258 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -1015,6 +1015,8 @@ GHOST_TSuccess GHOST_SystemWin32::processWintabEvents(GHOST_TEventType type, * don't duplicate the prior button down as it interrupts drawing immediately after * changing a window. */ + system->pushEvent(new GHOST_EventCursor( + info.time, GHOST_kEventCursorMove, window, info.x, info.y, info.tabletData)); if (type == GHOST_kEventButtonDown && mask == info.button) { system->pushEvent( new GHOST_EventButton(info.time, info.type, window, info.button, info.tabletData)); -- cgit v1.2.3