Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CollectionView scrolling not working when using SwipeView (only in iOS) #22165

Closed
divyesh008 opened this issue May 2, 2024 · 3 comments
Closed
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 t/bug Something isn't working

Comments

@divyesh008
Copy link

divyesh008 commented May 2, 2024

Description

The CollectionView scrolling gets freez/hang when using SwipeView control, and it appears to affect iOS devices exclusively.

The sensitivity of the SwipeView in iOS is notable, as it tends to open automatically when scrolling. This behavior makes it exceedingly challenging to perform a purely vertical scroll, as even the slightest horizontal movement triggers the swipe menu to open.

This might sound like a small thing, but it completely breaks the experience as almost every scroll opens the swipe menu plus it hangs the CollectionView scroll.

Tried to use Simultaneous pan gesture recognition as mentioned here, but it does not resolve issue:
https://learn.microsoft.com/en-us/dotnet/maui/ios/platform-specifics/application-pan-gesture?view=net-maui-8.0

Testing Procedure

  • Launch the app from the reproduction project.
  • Start scrolling the list vertically.
  • Notice that the Swipe view opens automatically to some extent due to its high sensitivity.
  • The screen becomes unresponsive, causing scrolling to halt.
  • Swipe right to close the Swipe view.
  • Subsequent scrolling may still encounter interruptions, with the scrolling halting intermittently when moving up and down.

Screen recording
https://github.com/dotnet/maui/assets/10617244/40fe7f7f-bcab-4619-95ae-bab6284f6871

Steps to Reproduce

  1. You start scrolling a view vertically
  2. Due to the sensitivity of the swipe view it opens on the any item (from right in my case)
  3. You continue scrolling normally
  4. The swipe view either disappears at this stage or stays visible
  5. No matter if it disappears or not, the actual item stays on the left side, as if the swipe view item was visible
  6. The UI may lock up

Link to public reproduction project repository

https://github.com/divyesh008/CollectionWithSwipeView_Bug.git

Version with bug

8.0.10 SR3

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17.2

Did you find any workaround?

For the work around I have to use Bindable Layout.

Relevant log output

No response

@divyesh008 divyesh008 added the t/bug Something isn't working label May 2, 2024
@Eilon Eilon added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label May 2, 2024
@PureWeen
Copy link
Member

PureWeen commented May 2, 2024

/similarissues

Copy link
Contributor

github-actions bot commented May 2, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@PureWeen
Copy link
Member

PureWeen commented May 2, 2024

Duplicate of #16856

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants