You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] [iOS] TouchBehaviour, Popup, and Carousel Shennanigans #1825
I notice with the button, it's less of an issue in general, BUT I have observed the same behaviour. You can also get swipe behaviour back by pressing the label while the popover is open again, and a popup will come up before dismissing itself.
Also, if anyone can find a work-a-round, it would be a huge help; this is stopping some progress.
You might need to use the CanBeDismissedByTappingOutsideOfPopup property to prevent the Popup from being dismissed in this manner and add a button to the Popup that will close it.
Or consider disabling the swipe support on the CarouselView when you are showing a Popup.
Hmmm, that could be tricky. Cause I do want the Dismiss behaviour, and I'm not sure how I'd make a full-screen button with an anchored view.
Disabling the carousel is actually something I haven't tried yet, so I'll give that a go.
Edit: Setting IsSwipeEnabled on the Open/Close events did do the trick.
One interesting thing I've noticed though is when a popup is open, you can touch the icon to open another popup, but they will close immediately. This behaviour feels strange so probably best if it can be fixed so touches don't go through until after the popup is dismissed. This is how Android works at least.
@asi-evin , You can avoid this problem by implementing as below.
The code is an excerpt of the modified part. This is a method that does not use TouchBehavior.
At least if you don't use TouchBehavior, this problem won't occur.
Activity
bijington commentedon Apr 18, 2024
You might need to use the
CanBeDismissedByTappingOutsideOfPopupproperty to prevent the Popup from being dismissed in this manner and add a button to the Popup that will close it.Or consider disabling the swipe support on the CarouselView when you are showing a Popup.
asi-evin commentedon Apr 18, 2024
Hmmm, that could be tricky. Cause I do want the Dismiss behaviour, and I'm not sure how I'd make a full-screen button with an anchored view.
Disabling the carousel is actually something I haven't tried yet, so I'll give that a go.
Edit: Setting IsSwipeEnabled on the Open/Close events did do the trick.
One interesting thing I've noticed though is when a popup is open, you can touch the icon to open another popup, but they will close immediately. This behaviour feels strange so probably best if it can be fixed so touches don't go through until after the popup is dismissed. This is how Android works at least.
asi-evin commentedon Apr 25, 2024
Could be related to #1831.
cat0363 commentedon Jul 25, 2024
@asi-evin , You can avoid this problem by implementing as below.
The code is an excerpt of the modified part. This is a method that does not use TouchBehavior.
At least if you don't use TouchBehavior, this problem won't occur.
[MainPage.xaml]
[MainPage.xaml.cs]
If you want to adjust the animation, please change the code in MainPage.xaml.cs.
Below is the verification video.
iPhone.15.iOS.17.0.2024-07-25.14-16-36.mp4
Is this the behavior you expect?
@bijington , When using TouchBehavior, a warning appears when debugging.
It is unclear whether this warning is related to the problem.