[Bf-blender-cvs] [7a06613] master: Fix T46402: UILists fail to scroll using click+drag

Philipp Oeser noreply at git.blender.org
Wed Oct 7 21:21:01 CEST 2015


Commit: 7a06613b8219684459374b2440dbfc6a6f2cdbd5
Author: Philipp Oeser
Date:   Wed Oct 7 21:07:45 2015 +0200
Branches: master
https://developer.blender.org/rB7a06613b8219684459374b2440dbfc6a6f2cdbd5

Fix T46402: UILists fail to scroll using click+drag

===================================================================

M	source/blender/editors/interface/interface_handlers.c

===================================================================

diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 97e38de..4d09781 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -4350,7 +4350,7 @@ static bool ui_numedit_but_SLI(
 	float offs;
 
 	/* prevent unwanted drag adjustments */
-	if (ui_but_dragedit_update_mval(data, mx) == false) {
+	if (ui_but_dragedit_update_mval(data, mx) == false && but->type != UI_BTYPE_SCROLL) {
 		return changed;
 	}




More information about the Bf-blender-cvs mailing list