diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-30 19:42:04 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-30 19:42:04 +0400 |
commit | 2bb59bc2734ac682208419e42aebf27285a88d22 (patch) | |
tree | f0a8154c3ef37638dc75ebc27699dd5b97154027 | |
parent | f3ae228c9d672990f0cbd40a10fcc9c68935a2fc (diff) |
Fix #28432: Scrolling lists respond incorrectly if mouse is not moved
Copy hardmin for LISTROW and ROW buttons when updating button
from old block due to list item index is stored in this value.
-rw-r--r-- | source/blender/editors/interface/interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 878b280118d..a3ae39c8440 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -678,6 +678,11 @@ static int ui_but_update_from_old_block(const bContext *C, uiBlock *block, uiBut SWAP(void *, oldbut->func_argN, but->func_argN) } + /* copy hardmin for list rows to prevent 'sticking' highlight to mouse position + when scrolling without moving mouse (see [#28432]) */ + if(ELEM(oldbut->type, ROW, LISTROW)) + oldbut->hardmax= but->hardmax; + ui_but_update_linklines(block, oldbut, but); BLI_remlink(&block->buttons, but); |