Fix #110085: Ignore Scroller Zone when on a Screen Edge
When the mouse cursor is between editors ignore scroller zones, which overflow their areas, so that screen edges are always detected. Pull Request: https://projects.blender.org/blender/blender/pulls/110402
This commit is contained in:
committed by
Harley Acheson
parent
11bca76f96
commit
c4fb34a3f7
@@ -895,7 +895,10 @@ static void screen_cursor_set(wmWindow *win, const int xy[2])
|
||||
ScrArea *area = nullptr;
|
||||
|
||||
LISTBASE_FOREACH (ScrArea *, area_iter, &screen->areabase) {
|
||||
if ((az = ED_area_actionzone_find_xy(area_iter, xy))) {
|
||||
az = ED_area_actionzone_find_xy(area_iter, xy);
|
||||
/* Scrollers use default cursor and their zones extend outside of their
|
||||
* areas. Ignore here so we can always detect screen edges - #110085. */
|
||||
if (az && az->type != AZONE_REGION_SCROLL) {
|
||||
area = area_iter;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user