diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 8677b1ed78a..8935df7b581 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -7969,7 +7969,16 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, const wmEvent * } if (but->flag & UI_BUT_DISABLED) { - return WM_UI_HANDLER_BREAK; + /* It's important to continue here instead of breaking since breaking causes the event to be + * considered "handled", preventing further click/drag events from being generated. + * + * An example of where this is needed is dragging node-sockets, where dragging a node-socket + * could exit the button before the drag threshold was reached, disable the button then break + * handling of the #MOUSEMOVE event preventing the socket being dragged entirely, see: T96255. + * + * Region level event handling is responsible for preventing events being passed + * through to parts of the UI that are logically behind this button, see: T92364. */ + return WM_UI_HANDLER_CONTINUE; } switch (but->type) { |