[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25163] trunk/blender/source/blender/ editors/screen/area.c: Fix for [#19541] Buttons etc that are too close to the window edge don't react to input

Matt Ebb matt at mke3.net
Mon Dec 7 11:22:58 CET 2009


Revision: 25163
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25163
Author:   broken
Date:     2009-12-07 11:22:58 +0100 (Mon, 07 Dec 2009)

Log Message:
-----------
Fix for [#19541] Buttons etc that are too close to the window edge don't react to input

Modified Paths:
--------------
    trunk/blender/source/blender/editors/screen/area.c

Modified: trunk/blender/source/blender/editors/screen/area.c
===================================================================
--- trunk/blender/source/blender/editors/screen/area.c	2009-12-07 03:37:43 UTC (rev 25162)
+++ trunk/blender/source/blender/editors/screen/area.c	2009-12-07 10:22:58 UTC (rev 25163)
@@ -1343,6 +1343,8 @@
 		/* only allow scrolling in vertical direction */
 		v2d->keepofs |= V2D_LOCKOFS_X|V2D_KEEPOFS_Y;
 		v2d->keepofs &= ~(V2D_LOCKOFS_Y|V2D_KEEPOFS_X);
+		v2d->scroll |= V2D_SCROLL_HORIZONTAL_HIDE;
+		v2d->scroll &= ~V2D_SCROLL_VERTICAL_HIDE;
 		
 		// don't jump back when panels close or hide
 		if(!newcontext)
@@ -1357,6 +1359,8 @@
 		v2d->keepofs &= ~(V2D_LOCKOFS_X|V2D_LOCKOFS_Y|V2D_KEEPOFS_X|V2D_KEEPOFS_Y);
 		//v2d->keepofs |= V2D_LOCKOFS_Y|V2D_KEEPOFS_X;
 		//v2d->keepofs &= ~(V2D_LOCKOFS_X|V2D_KEEPOFS_Y);
+		v2d->scroll |= V2D_SCROLL_VERTICAL_HIDE;
+		v2d->scroll &= ~V2D_SCROLL_HORIZONTAL_HIDE;
 		
 		// don't jump back when panels close or hide
 		if(!newcontext)





More information about the Bf-blender-cvs mailing list