diff options
author | Matt Ebb <matt@mke3.net> | 2009-12-07 13:22:58 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-12-07 13:22:58 +0300 |
commit | b672e9f9c0cb0784946111fda6312375db3ed802 (patch) | |
tree | b5bdad7c32f8860e3159ea1bd6ea9bbe38c094c2 /source/blender/editors/screen/area.c | |
parent | 91102d96fcaf8799c4143c3234f213bd0d692b32 (diff) |
Fix for [#19541] Buttons etc that are too close to the window edge don't react to input
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r-- | source/blender/editors/screen/area.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index f663e5f0a21..ea56e9fd31b 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1343,6 +1343,8 @@ void ED_region_panels(const bContext *C, ARegion *ar, int vertical, char *contex /* 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 @@ void ED_region_panels(const bContext *C, ARegion *ar, int vertical, char *contex 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) |