Open ovbarnett opened 9 months ago
I have tried the same exact code (copied from the documentation [ovbarnett] linked) on an Android device (Samsung A53) and I have the same behaviour, the PointerEntered, PointerExited and PointerMoved are not firing.
While debugging I see the following traces (not coming from my code) displayed when I press and release on the image: [ViewRootImpl@8327209[MainActivity]] ViewPostIme pointer 0 [GestureDetector] obtain mCurrentDownEvent. id: 555827624 caller: mono.android.view.View_OnTouchListenerImplementor.n_onTouch:-2 mono.android.view.View_OnTouchListenerImplementor.onTouch:31 android.view.View.dispatchTouchEvent:16208 [GestureDetector] obtain mCurrentMotionEventRaw. action: 2 id: 197923056 [ViewRootImpl@8327209[MainActivity]] ViewPostIme pointer 1
If I debug the same code on Windows platform events are firing.
Verified this on VS 17.10.0 Preview 1.0(8.0.6). Repro on Android 14.0-API34 and iOS 17.2, not repro on Windows 11 and MacCatalyst with below Project: PointerGestureRecognizer-PointerEntered-and-PointerExited-Events-not-firing.zip
Description
Hi there, I was looking at PointerGestureRecognizer and PointerEntered / PointerExited events to change the color and the size of an image and a label but from what I see so far that PointerEntered and PointerExited events are not firing at all even though it should as per this example in documentation https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/gestures/pointer?view=net-maui-7.0&tabs=macios
https://github.com/dotnet/maui/assets/62110195/8275752e-54e5-4247-8085-590fab73fd6e
I have a screen recording attached for your review
Steps to Reproduce
<Image x:Name="dotnet_botImage" Source="dotnet_bot.png" SemanticProperties.Description="Cute dot net bot waving hi to you!" HeightRequest="200" HorizontalOptions="Center" >