Fix #111086: Ignore Scroller Zones in Invisible Regions #111126

Merged
Harley Acheson merged 3 commits from Harley/blender:InvisibleScrollers into main 2023-08-18 21:31:43 +02:00
1 changed files with 4 additions and 2 deletions

View File

@ -898,7 +898,8 @@ static AZone *area_actionzone_refresh_xy(ScrArea *area, const int xy[2], const b
break;
}
}
else if (az->type == AZONE_REGION_SCROLL) {
else if (az->type == AZONE_REGION_SCROLL && az->region->visible) {
/* If the region is not visible we can ignore this scoller zone. */
ARegion *region = az->region;
View2D *v2d = &region->v2d;
int scroll_flag = 0;
@ -967,7 +968,8 @@ static AZone *area_actionzone_refresh_xy(ScrArea *area, const int xy[2], const b
area->flag &= ~AREA_FLAG_ACTIONZONES_UPDATE;
ED_area_tag_redraw_no_rebuild(area);
}
else if (az->type == AZONE_REGION_SCROLL) {
else if (az->type == AZONE_REGION_SCROLL && az->region->visible) {
/* If the region is not visible we can ignore this scoller zone. */
if (az->direction == AZ_SCROLL_VERT) {
az->alpha = az->region->v2d.alpha_vert = 0;
area->flag &= ~AREA_FLAG_ACTIONZONES_UPDATE;