Only render the previews we can actually see.
This really should be fixed generally in ScrollPanelWidget, but this is the most painful case.
This commit is contained in:
@@ -107,6 +107,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
previewWidget.IgnoreMouseOver = true;
|
||||
previewWidget.IgnoreMouseInput = true;
|
||||
previewWidget.Map = () => m;
|
||||
previewWidget.IsVisible = () => previewWidget.RenderBounds.IntersectsWith(scrollpanel.RenderBounds);
|
||||
|
||||
var previewLoadingWidget = item.GetOrNull<BackgroundWidget>("PREVIEW_PLACEHOLDER");
|
||||
if (previewLoadingWidget != null)
|
||||
|
||||
Reference in New Issue
Block a user