Cleanup: add ISMOUSE_MOTION macro

Replace verbose ELEM(..) usage, now each kind of mouse event has it's
own macro.
This commit is contained in:
2022-07-21 16:23:33 +10:00
parent 7a73685460
commit 2eeedbbca9
15 changed files with 29 additions and 29 deletions

View File

@@ -2318,7 +2318,7 @@ int ui_handler_panel_region(bContext *C,
const uiBut *active_but)
{
/* Mouse-move events are handled by separate handlers for dragging and drag collapsing. */
if (ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)) {
if (ISMOUSE_MOTION(event->type)) {
return WM_UI_HANDLER_CONTINUE;
}