fix for error with drag toggle which showed up with overlapping regions.

This commit is contained in:
Campbell Barton
2013-02-27 11:26:51 +00:00
parent 3d7867d7f0
commit d4d45711dc

View File

@@ -2507,7 +2507,7 @@ static int ui_do_but_TOG(bContext *C, uiBut *but, uiHandleButtonData *data, cons
button_activate_state(C, but, BUTTON_STATE_WAIT_DRAG);
data->dragstartx = event->x;
data->dragstarty = event->y;
return WM_UI_HANDLER_CONTINUE;
return WM_UI_HANDLER_BREAK;
}
}
else if (data->state == BUTTON_STATE_WAIT_DRAG) {