CardView.MAUI icon indicating copy to clipboard operation
CardView.MAUI copied to clipboard

Nested CoverFlowView question

Open dzebas opened this issue 7 months ago • 3 comments

Hi,

I've one CoverFlowView nested inside another, both only scroll horizontally, works well. One issue is, that when child CoverFlowView is at the beginning and I swipe right or it is scrolled to last item and I swipe left (in both cases there is no where to scroll for child CoverFlowView), then parent CoverFlowView gets triggered and it changes to another card.

Is it possible to somehow disable parent CoverFlowView swipes if I'm swiping inside child CoverFlowView? Below illustrates what happens when I scroll to last attachment and keep scrolling - it moves to another email (parent CoverFlowView), but I would like parent not to react.

Image

Thanks in advance!

dzebas avatar Jun 30 '25 08:06 dzebas

Hi If I got you correctly, this behavior was intentional.

As far as I see, RN, there is no possibility to switch it off. But it can be quite easily added, I think. If it's still relevant for you

AndreiMisiukevich avatar Jul 09 '25 16:07 AndreiMisiukevich

We should add new property (or a couple) And properly handle _parentCardsViewOption

AndreiMisiukevich avatar Jul 09 '25 16:07 AndreiMisiukevich

Need to test it. But potentially even easier

https://github.com/AndreiMisiukevich/CardView.MAUI/blob/main/PanCardView/Common/CardsView.cs#L1324-L1335

Maybe we can return false here and it will work as you need it. But again, need to test it.

Would you like to download sources and jam there?

AndreiMisiukevich avatar Jul 09 '25 16:07 AndreiMisiukevich