Skip to content

Conversation

@Ahamed-Ali
Copy link
Contributor

@Ahamed-Ali Ahamed-Ali commented Mar 26, 2025

Root Cause of the issue

  • The default normal press and dragging for reordering CollectionView items occur on Mac. There is no CanMixGroups logic for a normal press, as it is already handled by the longPressGestureRecognizer. Therefore, the issue occurs due to interference between the normal press drag and long press gestures.

Description of Change

  • Restrict normal press and dragging on items on Mac, ensuring that only long press gestures are used, as they already handle CanMixGroups properly.

Issues Fixed

Fixes #28530

Tested the behaviour in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Screenshot

Before Issue Fix After Issue Fix
WithoutfixforCanMixGrouFalse.mov
WithFixforCanMixGroupFalse.mov

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Mar 26, 2025
@vishnumenon2684 vishnumenon2684 added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Mar 26, 2025
@jfversluis jfversluis added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Mar 26, 2025
@jsuarezruiz jsuarezruiz added the platform/macos macOS / Mac Catalyst label Mar 26, 2025
Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"I tried adding a test case using App.DragAndDrop, but it was not effective, as the test did not fail even without the fix. Therefore, we can proceed with a manual test instead."

Can you share more details? Using App.DragAndDrop and with VerifyScreenshot could be possible to verify it?

@Ahamed-Ali
Copy link
Contributor Author

"I tried adding a test case using App.DragAndDrop, but it was not effective, as the test did not fail even without the fix. Therefore, we can proceed with a manual test instead."

Can you share more details? Using App.DragAndDrop and with VerifyScreenshot could be possible to verify it?

I have included the test case with VerifyScreenshot. @jsuarezruiz

@Ahamed-Ali Ahamed-Ali marked this pull request as ready for review March 26, 2025 14:39
@Ahamed-Ali Ahamed-Ali requested a review from a team as a code owner March 26, 2025 14:39
@Ahamed-Ali Ahamed-Ali requested review from PureWeen and rmarinho March 26, 2025 14:39
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

{
App.WaitForElement("CollectionViewControl");
App.DragAndDrop("Item 2", "Item 3");
VerifyScreenshot();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending snapshot on some platforms.

For example, Android:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have committed the pending images for other platforms. @jsuarezruiz

{
App.WaitForElement("CollectionViewControl");
App.DragAndDrop("Item 2", "Item 3");
VerifyScreenshot();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fails on iOS:
Snapshot different than baseline: ReorderBetweenGroupsShouldNotOccurWhenCanMixGroupsIsFalse.png (1.44% difference)
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have resaved the iOS image from CI. Could you please verify it now? @jsuarezruiz

@rmarinho
Copy link
Member

Can you retarget this to the inflight branch please?

@Ahamed-Ali Ahamed-Ali changed the base branch from main to inflight/current March 28, 2025 11:24
@Ahamed-Ali
Copy link
Contributor Author

Can you retarget this to the inflight branch please?

I have retargeted this branch to inflight. @rmarinho

@rmarinho rmarinho merged commit c05aff5 into dotnet:inflight/current Mar 30, 2025
3 checks passed
github-actions bot pushed a commit that referenced this pull request Apr 2, 2025
…g Between Groups in CollectionView (#28623)

* Fixed the CanMixGroups Set to False Still Allows Reordering Between Groups in CollectionView

* Committed the test case and sample

* Committed the pending snap
github-actions bot pushed a commit that referenced this pull request Apr 3, 2025
…g Between Groups in CollectionView (#28623)

* Fixed the CanMixGroups Set to False Still Allows Reordering Between Groups in CollectionView

* Committed the test case and sample

* Committed the pending snap
github-actions bot pushed a commit that referenced this pull request Apr 8, 2025
…g Between Groups in CollectionView (#28623)

* Fixed the CanMixGroups Set to False Still Allows Reordering Between Groups in CollectionView

* Committed the test case and sample

* Committed the pending snap
bhavanesh2001 pushed a commit to bhavanesh2001/maui that referenced this pull request Apr 11, 2025
…g Between Groups in CollectionView (dotnet#28623)

* Fixed the CanMixGroups Set to False Still Allows Reordering Between Groups in CollectionView

* Committed the test case and sample

* Committed the pending snap
PureWeen pushed a commit that referenced this pull request Apr 11, 2025
…g Between Groups in CollectionView (#28623)

* Fixed the CanMixGroups Set to False Still Allows Reordering Between Groups in CollectionView

* Committed the test case and sample

* Committed the pending snap
github-actions bot pushed a commit that referenced this pull request Apr 11, 2025
…g Between Groups in CollectionView (#28623)

* Fixed the CanMixGroups Set to False Still Allows Reordering Between Groups in CollectionView

* Committed the test case and sample

* Committed the pending snap
github-actions bot pushed a commit that referenced this pull request Apr 14, 2025
…g Between Groups in CollectionView (#28623)

* Fixed the CanMixGroups Set to False Still Allows Reordering Between Groups in CollectionView

* Committed the test case and sample

* Committed the pending snap
github-actions bot pushed a commit that referenced this pull request Apr 15, 2025
…g Between Groups in CollectionView (#28623)

* Fixed the CanMixGroups Set to False Still Allows Reordering Between Groups in CollectionView

* Committed the test case and sample

* Committed the pending snap
@github-actions github-actions bot locked and limited conversation to collaborators Apr 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-collectionview CollectionView, CarouselView, IndicatorView community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/macos macOS / Mac Catalyst

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Catalyst] CanMixGroups Set to False Still Allows Reordering Between Groups in CollectionView

5 participants