Fix #97530: Overlapping Content Causing Region Scrolling #107404

Merged
Harley Acheson merged 2 commits from Harley/blender:FilterScroll into main 2023-04-28 19:06:36 +02:00
1 changed files with 3 additions and 1 deletions

View File

@ -3469,7 +3469,9 @@ static void ui_textedit_begin(bContext *C, uiBut *but, uiHandleButtonData *data)
* #ui_but_update_view_for_active() to run after the layout is resolved. */
but->changed = true;
}
else {
else if ((but->block->flag & UI_BLOCK_CLIP_EVENTS) == 0) {
/* Blocks with UI_BLOCK_CLIP_EVENTS are overlapping their region, so scrolling
* that region to ensure it is in view can't work and causes issues. #97530 */
UI_but_ensure_in_view(C, data->region, but);
}