Skip to content

Conversation

Copy link

Copilot AI commented Nov 21, 2025

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!

Description of Change

Setting IsEnabled=false on CollectionView/CarouselView blocks interaction on Windows but not on Android/iOS.

Root cause:

  • Android: RecyclerView's OnInterceptTouchEvent doesn't check Enabled property
  • iOS: UICollectionView doesn't inherit from UIControl; requires explicit UserInteractionEnabled management

Solution:

Android:

  • Added Enabled check in MauiRecyclerView.OnInterceptTouchEvent()
  • Added Enabled check in MauiCarouselRecyclerView.OnInterceptTouchEvent()

iOS/MacCatalyst:

  • Added UpdateIsEnabled() extension method on UICollectionView to set UserInteractionEnabled
  • Mapped IsEnabled property in ItemsViewHandler, CarouselViewHandler, and v2 handlers

Acknowledgment:
This solution adopts the approach from PR dotnet#32794 by @SyedAbdulAzeemSF4852. After independent analysis, determined their implementation is optimal.

Issues Fixed

Fixes dotnet#32791

Original prompt

fix dotnet#32791

Custom agent used: issue-resolver
Specialized agent for investigating and resolving community-reported .NET MAUI issues through hands-on testing and implementation


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…emain interactive when disabled on Android and iOS

Co-authored-by: kubaflo <[email protected]>
Copilot AI changed the title [WIP] Fix issue 32791 in MAUI framework [Issue-Resolver] Fix #32791 - CollectionView and CarouselView remain interactive when disabled on Android/iOS Nov 21, 2025
Copilot finished work on behalf of kubaflo November 21, 2025 23:40
Copilot AI requested a review from kubaflo November 21, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android, iOS] CollectionView and CarouselView remain interactive when disabled

2 participants