Skip to content

Commit

Permalink
scroll bounce limits adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
taublast committed Nov 23, 2024
1 parent ec8382b commit 6ad377e
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 185 deletions.
5 changes: 3 additions & 2 deletions src/Engine/Draw/Layout/SkiaLayout.ColumnRow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,11 @@ public virtual ScaledSize MeasureStack(SKRect rectForChildrenPixels, float scale
var layoutStructure = BuildStackStructure(scale);

bool useOneTemplate =
IsTemplated &&
//ItemSizingStrategy == ItemSizingStrategy.MeasureFirstItem &&
RecyclingTemplate == RecyclingTemplate.Enabled;

if (IsTemplated && useOneTemplate)
if (useOneTemplate)
{
template = ChildrenFactory.GetTemplateInstance();
}
Expand Down Expand Up @@ -515,7 +516,7 @@ public virtual ScaledSize MeasureStack(SKRect rectForChildrenPixels, float scale
secondPass.Scale);
}

if (IsTemplated && useOneTemplate)
if (useOneTemplate)
{
ChildrenFactory.ReleaseView(template);
}
Expand Down
Loading

0 comments on commit 6ad377e

Please sign in to comment.