Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] [UWP] ScrollView scrolls to top when tapping an item in BindableLayout #13718

Open
LakshmiNatarajan21 opened this issue Feb 10, 2021 · 3 comments

Comments

@LakshmiNatarajan21
Copy link

Description

ScrollView scrolls back to the top whenever tapping an item in StackLayout.BindableLayout in UWP platform. Also, the Scrolled event of the ScrollView is triggered.

Steps to Reproduce

  1. Run the attached sample in UWP
  2. Scroll down
  3. Select an item
  4. Note: The ScrollView scrolled back to top

Expected Behavior

ScrollView should not scroll to top

Actual Behavior

ScrollView scrolled up

Basic Information

  • Version with issue: 5.0.0.1931
  • Last known good version: No
  • Platform Target Frameworks:
    • UWP: Target platform version 10.0.19041.0

Screenshots

IssueDemo

Reproduction Link

ScrollViewIssueSample

Workaround

No.

@LakshmiNatarajan21 LakshmiNatarajan21 added s/unverified New report that has yet to be verified t/bug 🐛 labels Feb 10, 2021
@samhouts samhouts added this to New in Triage Feb 10, 2021
@holecekp
Copy link

holecekp commented Feb 10, 2021

This is a very old bug that has already been reported (#5652). There is a workaround that uses a custom renderer to fix this. I have updated the workaround and reflected the recent changes in Xamarin.Forms to it. You can download the renderer in the following post: #5652 (comment).

@jsuarezruiz jsuarezruiz added p/UWP a/scrollview e/3 🕒 3 duplicate Duplicate issue and removed s/unverified New report that has yet to be verified labels Feb 10, 2021
@jsuarezruiz jsuarezruiz moved this from New to Ready For Work in Triage Feb 10, 2021
@jsuarezruiz
Copy link
Contributor

Seems to be the same as #5652

@LakshmiNatarajan21
Copy link
Author

The workaround does not work if the StackLayout is replaced by custom like SfListView. In this case, the SfListView has its own ScrollView and could not write renderer for the same.

Please find the sample,
ScrollViewIssueWithSfListView

Can the issue be prioritised?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Triage
  
Ready For Work
Development

No branches or pull requests

3 participants