diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-28 00:58:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-28 00:58:37 +0400 |
commit | 51d399aaab8dbe4268e990d16ea6ac36a045316c (patch) | |
tree | 3de0391bcac9f7ece29923cab193d15aa9e05549 | |
parent | ba9b7e6a202cfc6a8e4ba0c2f9795c22a5d1b1a0 (diff) |
tweak to dragging the ui-list, would lag behind the mouse noticeably.
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index cad9f6707d5..f30701e07d8 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -3444,7 +3444,7 @@ static int ui_do_but_LISTBOX(bContext *C, uiBlock *block, uiBut *but, uiHandleBu else { int delta = -(my - data->dragstarty); /* Number of rows to show/hide, UI_UNIT_Y should work nice in most cases. */ - delta /= UI_UNIT_Y; + delta = (int)floorf(((float)delta / (float)UI_UNIT_Y) + 0.5f); /* If we are not in autosize mode, default behavior... */ if (*size > 0 && delta != 0) { |