Bug on click on *swipable* items in list in a scrollview

When you have items stacked inside a scrollview, with a Clicked attached to each one, if you swipe the list then no Click is triggered. It’s standard behaviour.

However, I have noted that if the said elements also have a SwipeGesture attached (even if the direction is Left or Right and the Scrollview is Vertical), then when you start scrolling and release the scroll, if your cursor stayed over the same element during the scrolling then a click event is triggered (which is a bug because the expected behaviour would be a simple scroll).

Hi!

Would it be possible for you to add a small test project to this thread? It would make it easier to debug.

Full code for working repro:

<App Theme="Basic">
    <ScrollView AllowedScrollDirections="Vertical">
        <StackPanel>
            <Each Count="20">
                <Panel Height="100" ux:Name="Item">
                    <Rectangle ux:Name="Rect" Width="100%" Height="2" Fill="#000000" Alignment="Top"/>
                    <Text>Hello</Text>
                    <SwipeGesture ux:Name="DeleteItem" Direction="Right" Type="Active" Length="300"/>
                    <SwipingAnimation Source="DeleteItem">
                        <Move Target="Item" X="0.8" RelativeTo="Size" Duration="0.8" />
                        <Change Item.Opacity="0" Delay="0.4" Duration="0.4" />
                    </SwipingAnimation>

                    <Clicked>
                        <DebugAction Message="Hi" />
                        <Change Rect.Fill="#ff0000" Duration="0.2" />
                    </Clicked>
                </Panel>
            </Each>
        </StackPanel>
    </ScrollView>
</App>

With this code, if you scroll up / down, when you release, the click is triggered. It shouldn’t behave this way (and if you remove the SwipeGesture, it stops)

If you replace Tapped with Clicked the bug is fixed.

Hi!

Sorry for the late reply. This seems to be a bug, and i’ve created an internal ticket to get it fixed :slight_smile: