Skip to content

Regression: ScrollViewer.ChangeView beyond the extent chases the growing virtualized extent (breaks WinUI parity; over-fetches incremental loading) #23695

Open

Description

@agneszitte

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 ChangeView differs, 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): ChangeView to 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.UI ItemsRepeaterExtensionTests.When_Incremental_Load / _ShouldStop / _IsLoading fail on nightly (loads 375 items instead of the expected 50; IsLoading never settles).
  • Any app that programmatically scrolls to the bottom (ChangeView to 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) vs 6.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

  1. agneszitte commented on Jul 9, 2026

    @agneszitte
    MemberAuthor

    Version scope — this is a 6.7-dev-only regression:

    Runtime beyond-extent ChangeView batches
    Native WinUI 3 ✅
    Uno 6.5.x stable 3 ✅
    Uno.Sdk 6.6.16 (Uno.WinUI 6.6.134) 3 ✅
    Uno 6.7.0-dev (Uno.WinUI 6.7.0-dev.70x) 15 ❌

    385b6146a9 is on master and was not backported to release/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.

  2. added a commit that references this issue on Jul 13, 2026
    f1081f9
  3. added 3 commits that reference this issue on Aug 22, 2026
    ee03c6e
    89692c9
    0609b6f
  4. github-actions commented on Nov 10, 2026

    @github-actions
    Contributor

    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.

  5. added
    stale
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

stale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions