-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Catalyst] Click-Dragging Behavior in CollectionView #29616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Catalyst] Click-Dragging Behavior in CollectionView #29616
Conversation
Hey there @@Tamilarasan-Paranthaman! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR restores a more responsive drag-and-drop experience on Mac Catalyst by reducing the long-press threshold to 0.1 seconds.
- Adds a
#if MACCATALYST
block to setMinimumPressDuration
to0.1
seconds in both reorderable view controllers. - Ensures drag gestures match original system behavior without requiring a full long press.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
src/Controls/src/Core/Handlers/Items2/iOS/ReorderableItemsViewController2.cs | Add MACCATALYST-specific MinimumPressDuration adjustment to the long-press gesture recognizer. |
src/Controls/src/Core/Handlers/Items/iOS/ReorderableItemsViewController.cs | Add MACCATALYST-specific MinimumPressDuration adjustment to the long-press gesture recognizer. |
Comments suppressed due to low confidence (1)
src/Controls/src/Core/Handlers/Items2/iOS/ReorderableItemsViewController2.cs:169
- Add automated UI tests in
TestCases.Shared.Tests
andTestCases.HostApp
to verify the reduced press duration behavior on Mac Catalyst and ensure tests run reliably against the new gesture timing.
_longPressGestureRecognizer.MinimumPressDuration = 0.1;
src/Controls/src/Core/Handlers/Items2/iOS/ReorderableItemsViewController2.cs
Outdated
Show resolved
Hide resolved
src/Controls/src/Core/Handlers/Items2/iOS/ReorderableItemsViewController2.cs
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
* CollectionView drag changes on Mac * Mac drag changes
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Root Cause of the issue
Description of Change
Issues Fixed
Fixes #29536
Tested the behaviour in the following platforms
Screenshot
Before-Fix.mov
After-Fix.mov