Repository navigation
Description
Summary
On the current dev Uno.WinUI, ScrollViewer.ChangeView(...) to a vertical offset beyond the current extent now chases the virtualized extent as it grows, instead of clamping to the live extent the way native WinUI (and Uno stable 6.5) do.
For content that grows during/after the scroll (e.g. an ItemsRepeater with incremental loading), the preserved "scroll to a far offset" intent keeps the viewport pinned to the moving bottom, so any "load more when the viewport reaches the end" consumer fires repeatedly and over-fetches.
Note
Affected versions — 6.7-dev only. Verified by testing each runtime: 6.7-dev is affected; 6.6 is NOT (tested Uno.Sdk 6.6.16 / Uno.WinUI 6.6.134 — behaves correctly), and neither is 6.5 nor native WinUI. The regressing commit is on master and was not backported to release/stable/6.6, so this can be fixed before 6.7 GA and no released version is impacted.
Reproduction (core-only, no Uno.Toolkit)
An ItemsRepeater (vertical StackLayout, 29px items) in a 210×210 ScrollViewer, with a source that adds a 25-item batch each time the viewport reaches the end (the standard incremental-loading trigger: distanceToEnd = ItemsRepeater.ActualHeight − EffectiveViewport.Bottom). Scrolling to the bottom via ChangeView(null, 10_000, null, disableAnimation: true) then counts how many batches load.
Full runnable repro attached: IncrementalLoadRepro.zip (switch Uno.Sdk in global.json; switch scroll mode via the IRREPRO_MODE env var; a net10.0-windows10.0.26100.0 target builds against native WinUI).
Results — batches loaded
| Scroll mode | native WinUI | Uno 6.5.36 (stable) | Uno 6.7.0-dev |
|---|---|---|---|
ChangeView(10_000) — beyond extent |
3 | 3 | 15 ⬅ |
ChangeView(ScrollableHeight) — live max |
7 | 7 | 7 |
| gradual/wheel-like steps | 9 | 9 | 9 |
- Only the beyond-extent
ChangeViewdiffers, and only on dev. Native WinUI and Uno stable both clamp (3 batches); dev chases the growing extent (15 batches → 375 items). - The dev run loads until the content height reaches the requested offset (
375 × 29 ≈ 10,000) — i.e. the beyond-extent offset intent is preserved and chased as the extent grows. ScrollableHeight/gradual scrolling are identical across all three → natural user scrolling is not affected.
Expected vs actual
- Expected (WinUI parity):
ChangeViewto an offset beyond the current extent clamps to the live extent; later async extent growth does not re-drive the old intent. → bounded loading (3 batches). - Actual (dev): the beyond-extent offset intent is preserved and chased as the virtualized extent grows → unbounded/over-fetch (15 batches / 375 items).
Root cause
Regressed by 385b6146a9 — "fix(scrollviewer): Preserve offset intent across virtualization extent fluctuations (fixes #23041, #23042)" (part of the wheel-scroll-flicker work). Confirmed:
- not in
release/stable/6.5(→ stable matches WinUI), and - in
master(→ dev regresses).
Impact
Uno.Toolkit.UIItemsRepeaterExtensionTests.When_Incremental_Load/_ShouldStop/_IsLoadingfail on nightly (loads 375 items instead of the expected 50;IsLoadingnever settles).- Any app that programmatically scrolls to the bottom (
ChangeViewto a large/double.MaxValue-ish offset) and loads content incrementally — e.g. chat/feed "jump to latest" then load — will over-fetch.
Suggested fix direction
ChangeView to a beyond-extent offset should clamp to the live extent (WinUI parity) rather than persist and chase the requested offset as the extent later grows via async content — or bound the offset-intent preservation to the extent as measured at request time. cc the #23041/#23042 change author.
Environment
- Uno.Sdk
6.7.0-dev.*(regressed) vs6.5.36(stable, matches WinUI); native WinUI via WinAppSDK on the Windows target. net10.0-desktop(Skia) +net10.0-windows10.0.26100.0(native WinUI); .NET 10; Windows 11.
Activity
agneszitte commentedon Jul 9, 2026
Version scope — this is a 6.7-dev-only regression:
ChangeViewbatches385b6146a9is onmasterand was not backported torelease/stable/6.6, so 6.5 and 6.6 are unaffected — the regression only exists on the 6.7 dev line and can be fixed before 6.7 GA.agneszitte commentedon Jul 9, 2026
This issue is failing Toolkit Canary build for the runtime tests:
fix(scrollviewer): Clamp offset intent to the request-time extent (fixes
fix(scrollviewer): Clamp offset intent to the request-time extent (fixes
fix(scrollviewer): Clamp offset intent to the request-time extent (fixes
fix(scrollviewer): Clamp offset intent to the request-time extent (fixes
github-actions commentedon Nov 10, 2026
This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.