Fix #111086: Ignore Scroller Zones in Invisible Regions #111126
|
@ -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 = ®ion->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;
|
||||
|
|
Loading…
Reference in New Issue