xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.63k stars 1.87k forks source link

[Bug] SwipeView Items Lose their Positions when Scrolled & Swiped (iOS) #13184

Open darrabam opened 3 years ago

darrabam commented 3 years ago

Description

When swipe item is open and at the same time pressed/scrolled, it sometimes loses its original position. Best way to describe it is by the video below.

While it is reproducible on the simulator, it occurs more on real devices.

Steps to Reproduce

On a real device, simply scroll up/down while titling your finger to swipe at the same time. On the simulator, it becomes easier to reproduce if you open an item then scroll at about 45degree angle.

Expected Behavior

Items should never be displaced! they must maintain their position.

Actual Behavior

Items get displaced.

Basic Information

Environment

VS 2019 Community 16.8.3

Screenshots

ezgif com-gif-maker (4)

Reproduction Link

https://github.com/darrabam/SwipeViewDisplacementBug

Workaround

None

StefanVam commented 3 years ago

@jsuarezruiz hi,Do you know what time this fix will be published?my app occur this issue too,thanks

olenavasylchak commented 3 years ago

Same problem😩

nschoenberg commented 3 years ago

Same issue for me. @jsuarezruiz Any chance we can get your Fix from #13192 ? :)

CoolRets123 commented 3 years ago

Please, fix this :(

https://stackoverflow.com/questions/68700421/xamarin-swipeview-when-you-swipe-again-it-returns-to-the-position-of-the-last

jfversluis commented 2 years ago

Hey everyone! As people already noticed a PR is out with a fix, would you be able to grab the NuGet as described here and let us know if this fixes this issue? That will greatly speed up the review process.

Besides verifying if this particular issue is fixed also be sure to check other scenarios in the same area to make sure that this fix doesn't accidentally has side-effects 🙂

Thanks!

darrabam commented 2 years ago

@jfversluis @jsuarezruiz Unfortunately, not fixed. I managed to reproduce the issue shown in the video above even after updating the XF package to 5.0.0.7724+0-pr.14749-sha.36e4030e0-azdo.48314

jfversluis commented 2 years ago

Where did you get that version from? That doesn't seem like the right one.

darrabam commented 2 years ago

@jfversluis From (https://aka.ms/forms-prs/index.json) v5.0.0.7724 is listed as the latest version

jfversluis commented 2 years ago

Yes, but the latest version doesn't contain all the changes from other PRs, you will need the specific version under this PR, in this case #5.0.0.7695+0-pr.13192

darrabam commented 2 years ago

@jfversluis my bad 😅

still 5.0.0.7695+0-pr.13192-sha.2ad5c556a-azdo.48155 doesn't completely fix the issue and I was able to misplace the swipe items just like in the video. However, now the misplaced items will go back to their locations if swiped and closed again (wasn't the case before).

ezgif com-gif-maker (5)