-
Notifications
You must be signed in to change notification settings - Fork 1.9k
PanGestureRecognizer behaves differently on Windows to other platforms #24252
Copy link
Copy link
Closed
Copy link
Labels
area-gesturesGesture typesGesture typesp/2Work that is important, but is currently not scheduled for releaseWork that is important, but is currently not scheduled for releasepartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-gesturesGesture typesGesture typesp/2Work that is important, but is currently not scheduled for releaseWork that is important, but is currently not scheduled for releasepartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
On macOS, iOS, and Android, if you have overlapping PanGestureRecognizers only the top most will fire. Internally I assume MAUI is stopping the event propegating to lower views.
On Windows it allows the both PanGestureRecognizers to run.
I am unsure if this is specific to PanGestureRecognizer or if overlapped TapGestureRecognizer would do the same.EDIT: I tested with TapGestureRecognizer and it behaves correctly across all 4 platforms.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/beeradmoore/maui-issue-PanGesutreHandling
Version with bug
8.0.80 SR8
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 11
Did you find any workaround?
The project I discovered this I had a image and I want to select the image corners to resize, and anywhere else to resize.
My planned workaround is to instead make a 3x3 grid over the image where the 4 corners will handle resize, and the other 5 positions will handle pan.
Relevant log output
Sample videos
Tested on multiple platforms. Text in the top left of the screen will show what gesture recognizer is active.
Windows
Recording.2024-08-15.124212.mp4
macOS
Screen.Recording.2024-08-15.at.1.25.36.PM.mov
iOS
I tested on iOS sumulator and device. This screen recording is iOS simulator.
Simulator.Screen.Recording.-.iPhone.15.-.2024-08-15.at.13.22.48.mp4
Android
I only tested on emulator. Android exhibits its own problems with my drag implementation. But it does not trigger multiple pan gestures running at once.
(EDIT: The flickering on Android appears to be related to #20772. The sample code in this comment fixes the flicking)
android.mp4