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

[Bug] Can't click Button in Xamarin.UWP for cursor offset exist #11174

Closed
evolcano opened this issue Jun 23, 2020 · 8 comments
Closed

[Bug] Can't click Button in Xamarin.UWP for cursor offset exist #11174

evolcano opened this issue Jun 23, 2020 · 8 comments
Assignees
Labels
a/button a/scrollview e/2 🕑 2 i/regression in-progress This issue has an associated pull request that may resolve it! p/UWP t/bug 🐛

Comments

@evolcano
Copy link

Description

After upgrade Xamarin Git package, Cursor of Xamarin.UWP APP runs in Windows 10 react improperly. You just cann't click Button even the cursor is just above the Button. The Button is in ScrollView.

Steps to Reproduce

  1. Before scroll, everything is OK. The color of Button changed to bright gray when Cursor hover over, and can click
    滚动前

  2. After scroll, the Button don't response to the hover of cursor, and can not click
    滚动后

  3. If you move the cursor lower to some extent,the Button response to the hover of cursor, and click is vaild
    实际位置

Obvirouly, the offset exist.

Expected Behavior

Button response to cursor.

Actual Behavior

Button do not response to cursor properly.

Basic Information

  • Version with issue:
  • visual studio 16.6.2
  • Xamarin.Forms Version="4.7.0.968"
  • netstandard 2.0
  • TargetPlatformVersion:10.0.18362.0 - 10.0.17134.0
  • Affected Devices: window 10

Screenshots

Reproduction Link

Example code:
examplecode.txt

Workaround

@evolcano evolcano added s/unverified New report that has yet to be verified t/bug 🐛 labels Jun 23, 2020
@samhouts
Copy link
Member

perhaps related to #11106

@rmarinho
Copy link
Member

Hum, something weird here, i can't reproduce, can you take a look at this sample @evolcano see what i m missing.

Thanks

Issue11106_11174.zip

@rmarinho rmarinho added the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Jun 23, 2020
@evolcano
Copy link
Author

Hi, @rmarinho
Thank you!
Issue11106_11174.zip is fine on my computer. The only difference which I could found is the TargetPlatformVersion of UWP Project:
1.Issue11106_11174

image

2. My example project
image

According to #11106 which samhouts mentioned before, maybe Windows 10, version 1903 (10.0; Build 18362) cause the error due to ScrollView. But the scroller is OK just one week before.

ps: my test solution

App21.zip

@MagicAndre1981
Copy link
Contributor

I also can't click buttons in UWP. Eventhandler is not fired at all as breakpoint is not hit.

I use NavigationPage, no Shell and have a Grid Layout inside a ScrollView. On a different page without ScrollView, the click event is fired and clickedhandler is called.

MinVersion: 16299/Target: 19041, XF 4.6 SR4 worked, upgraded to 4.7 and it is broken.

@evolcano
Copy link
Author

@MagicAndre1981 It turns out like after upgrade Xamarin, as long as you use a ScrollView and scrolled, the Y coordinate of Cursor is mis-culculated, The offset maybe relate to ScrollView scrolled.

@rmarinho
Copy link
Member

Thanks we identified the issue and working for a fix ASAP

@rmarinho rmarinho added i/regression and removed s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. labels Jun 25, 2020
@jsuarezruiz jsuarezruiz self-assigned this Jun 25, 2020
@jsuarezruiz jsuarezruiz added e/2 🕑 2 and removed s/unverified New report that has yet to be verified labels Jun 25, 2020
@samhouts samhouts added the in-progress This issue has an associated pull request that may resolve it! label Jun 25, 2020
@MagicAndre1981
Copy link
Contributor

for me it works with 4.7 SR1

@samhouts
Copy link
Member

closed by #11207

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/button a/scrollview e/2 🕑 2 i/regression in-progress This issue has an associated pull request that may resolve it! p/UWP t/bug 🐛
Projects
None yet
Development

No branches or pull requests

5 participants