Fix file browsers thumbnail selection with tablet failing, after recent changes.

This commit is contained in:
Brecht Van Lommel 2018-11-30 19:11:14 +01:00
parent 4e92cc2759
commit 0b50ce1db4
Notes: blender-bot 2023-02-14 06:37:09 +01:00
Referenced by issue #58423, UV Sculpt tools don't work
1 changed files with 4 additions and 1 deletions

View File

@ -3125,7 +3125,10 @@ void wm_event_do_handlers(bContext *C)
/* If press was handled, we don't want to do click. This way
* press in tool keymap can override click in editor keymap.*/
if (event->val == KM_PRESS && !wm_action_not_handled(action)) {
if (ISMOUSE_BUTTON(event->type) &&
event->val == KM_PRESS &&
!wm_action_not_handled(action))
{
win->eventstate->check_click = false;
}