diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-08 19:58:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-08 20:03:29 +0300 |
commit | 4f2eac3b39df1f2aad3368413dfa98b350b533c3 (patch) | |
tree | 10bbde173044d9d1c506f37ec7a94ef649612128 /source/blender/editors/interface/interface_panel.c | |
parent | bf77efb684eb6f7018654562cc749799ebfdde9e (diff) |
WM: fix panel drag event handling
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 8021495b832..dbdf2a0863c 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -2305,7 +2305,7 @@ static int ui_handler_panel(bContext *C, const wmEvent *event, void *userdata) uiHandlePanelData *data = panel->activedata; /* verify if we can stop */ - if (event->type == LEFTMOUSE && event->val != KM_PRESS) { + if (event->type == LEFTMOUSE && event->val == KM_RELEASE) { ScrArea *sa = CTX_wm_area(C); ARegion *ar = CTX_wm_region(C); int align = panel_aligned(sa, ar); |