Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Xamarin forms UWP project click event does not take into account scroll position #11268

Closed
vsfeedback opened this issue Jul 1, 2020 · 3 comments
Labels
a/scrollview feedback-ticket Issue originates from https://developercommunity.visualstudio.com p/UWP s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/unverified New report that has yet to be verified t/bug 🐛

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


This is a very serious problem preventing me from updating my app in the UWP store.
Introduced probably when updating XF or Visual Studio
Only present on UWP, android still works fine.

Reproduction:

  • start with a view that has a scrollcontainer and a clickable item
  • scroll down
  • click in the ui
  • the click does not register on position of the mouse pointer, but on the location of the mouse pointer where it would have been when you have scrolled all the way to the top. (so, the click is not taking into account the delta Y of the scrolling).

I added a screen recording wich visualises the problem better that the text above.
I also added a vs recording (just so you have my system details)

This happens on multiple screens in my app. The simplest one is this one:






<viewModels:BBHeaderView BindingContext="{Binding BBHeaderViewModel}" ></viewModels:BBHeaderView>

            <Label  FontSize="Large" FontAttributes="Bold" Text="Copyright" ></Label>
            <Label  FontSize="Medium" Text="BookaBooka toont auteursrechtelijk beschermd materiaal. Het is niet toegestaan om beeldmateriaal of teksten ergens anders te gebruiken dan binnen BookaBooka." />

            <Label  FontSize="Large"  FontAttributes="Bold" Text="Jouw data"/>
            <Label  FontSize="Medium">
                <Label.FormattedText>
                    <FormattedString>
                        <Span Text="BookaBooka hecht waarde aan de privacy van jou en je kinderen. We verzamelen een minimale hoeveelheid gebruiksgegevens om inzicht te krijgen in hoe de app gebruikt wordt zodat we BookaBooka kunnen verbeteren. Ook verzamelen we gegevens over leesgedrag zodat we de rechthebbenden van het materiaal naar rato van leesgedrag uit kunnen betalen. De verzamelde gegevens zullen we niet delen met derden. Lees er meer over in "/>
                        <Span Text="onze privacy policy" TextDecorations="Underline">
                            <Span.GestureRecognizers>
                                <TapGestureRecognizer Command="{Binding TapUrlCommand}" CommandParameter="https://www.brainbro.nl/privacy" />
                            </Span.GestureRecognizers>
                        </Span>
                        <Span Text="."/>
                    </FormattedString>
                </Label.FormattedText>
            </Label>
            <Label  FontSize="Large" FontAttributes="Bold" Text="Vragen"/>

            <Label  FontSize="Medium">
                <Label.FormattedText>
                    <FormattedString>
                        <Span Text="Heb je een vraag? We helpen je graag. Stuur een mailtje naar "/>
                        <Span Text="****@yyy" TextDecorations="Underline">
                            <Span.GestureRecognizers>
                                <TapGestureRecognizer Command="{Binding TapUrlCommand}" CommandParameter="mailto://****@yyy" />
                            </Span.GestureRecognizers>
                        </Span>
                        <Span Text=" of gebruik het feedback formulier in BookaBooka."/>
                    </FormattedString>
                </Label.FormattedText>
            </Label>
            <StackLayout Orientation="Horizontal" HorizontalOptions="Center" Padding="0,20,0,10">
                <CheckBox HeightRequest="25" WidthRequest="25" Color="#71c4fe" IsChecked="{Binding UserAgreedWithPrivacyStatement}"></CheckBox>
                <Label  Text="Ik ga akkoord" FontSize="Large" FontAttributes="Bold">
                    <Label.GestureRecognizers>
                        <TapGestureRecognizer Command="{Binding SwitchUserAgreedWithPrivacyStatementCommand}"></TapGestureRecognizer>
                    </Label.GestureRecognizers>
                </Label>
            </StackLayout>
            <Grid>
                <yummy:PancakeView Style="{StaticResource InactiveButtonPancake}"  IsVisible="{Binding DisabledButtonVisible}">
                    <Label HorizontalOptions="Center" VerticalOptions="Center" TextColor="White" Text="Verder gaan" FontSize="Large" ></Label>
                </yummy:PancakeView>
                <yummy:PancakeView Style="{StaticResource ActiveButtonPancake}" IsVisible="{Binding EnabledButtonVisible}">
                    <yummy:PancakeView.GestureRecognizers>
                        <TapGestureRecognizer Command="{Binding TapEnabledAgreeButtonCommand}"></TapGestureRecognizer>
                    </yummy:PancakeView.GestureRecognizers>
                    <Label HorizontalOptions="Center" VerticalOptions="Center" TextColor="Black" Text="Verder gaan" FontSize="Large" ></Label>
                </yummy:PancakeView>
            </Grid>
        </StackLayout>
    </Grid>
</ScrollView>

Original Comments

Visual Studio Feedback System on 6/27/2020, 08:02 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

@samhouts
Copy link
Member

samhouts commented Jul 1, 2020

This might be a duplicate of #11106. Please try the latest version of 4.7.0.1080 published today.

@samhouts samhouts added t/bug 🐛 feedback-ticket Issue originates from https://developercommunity.visualstudio.com s/unverified New report that has yet to be verified a/scrollview p/UWP s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. labels Jul 1, 2020
@sjorsmiltenburg
Copy link

I confirm that upgrading to .1080 fixed my problem

@samhouts
Copy link
Member

samhouts commented Jul 1, 2020

Duplicate of #11106

@samhouts samhouts marked this as a duplicate of #11106 Jul 1, 2020
@samhouts samhouts closed this as completed Jul 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/scrollview feedback-ticket Issue originates from https://developercommunity.visualstudio.com p/UWP s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

3 participants