Skip to content

[Windows] ScrollView offsets do not preserve when Orientation changes to Neither #34671

Description

@Vignesh-SF3580

Description

When the ScrollView orientation is set to Neither, ScrollX and ScrollY are reset to 0 instead of preserving the current scroll position.

Steps to Reproduce

  1. Run the attached sample on Windows. MauiApp1 7.zip
  2. Click the Scroll To Repro Offset button.
  3. Observe the ScrollX and ScrollY values.
  4. Click the Set Neither button.
  5. Observe that ScrollX and ScrollY reset to zero.

Link to public reproduction project repository

No response

Version with bug

10.0.50

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions