Fix #28489: Wacom Intuos 4 tablet doesn't work with outliner
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 22 Sep 2011 15:39:31 +0000 (15:39 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 22 Sep 2011 15:39:31 +0000 (15:39 +0000)
Stylus can produce slight movements when it touches tablet,
so CLICK event wasn't triggering. Do not store INBETWEEN_MOUSE
as previous event to make CLICK events triggered correct.

Thanks to Brecht to pointing on short way to fix this problem.

source/blender/windowmanager/intern/wm_event_system.c

index 75fec6ed705ddeb266f9b683429d854f71b2b564..dad43b4fe69dc175eda0b6a2f97e8fa7f8a909a7 100644 (file)
@@ -1917,7 +1917,7 @@ void wm_event_do_handlers(bContext *C)
                        
                        /* store last event for this window */
                        /* mousemove and timer events don't overwrite last type */
                        
                        /* store last event for this window */
                        /* mousemove and timer events don't overwrite last type */
-                       if (event->type != MOUSEMOVE && !ISTIMER(event->type)) {
+                       if (!ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE) && !ISTIMER(event->type)) {
                                if (wm_action_not_handled(action)) {
                                        if (win->eventstate->prevtype == event->type) {
                                                /* set click time on first click (press -> release) */
                                if (wm_action_not_handled(action)) {
                                        if (win->eventstate->prevtype == event->type) {
                                                /* set click time on first click (press -> release) */