WM: fix panel drag event handling
authorCampbell Barton <ideasman42@gmail.com>
Fri, 8 Jun 2018 16:58:41 +0000 (18:58 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 8 Jun 2018 17:03:29 +0000 (19:03 +0200)
source/blender/editors/interface/interface_panel.c

index 8021495..dbdf2a0 100644 (file)
@@ -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);