You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Buttons not firing after clicking into element having touch behavior even when behavior IsEnabled="False" (Mac Catalyst) #1853
Two Buttons have commands associated with them. These buttons are not within the area controlled by the touch behavior. Once we've clicked in the area with the touch behavior (even if the behavior is disabled), the buttons no longer run the commands. You must move the cursor outside of the current application window and return, and the buttons now fire.
Expected Behavior
Buttons should be active at all times and not impacted by clicking within the area that has touch behaviour.
Steps To Reproduce
Run the repo project within Mac Catalyt
Click either button to see it's name as an alert
Click inside one of the list items in the view
Click on either button (no popup)
Move the cursor off the active Window
Move the cursor back to the active Window and click the buttons to see the command active once more
Turn on Grid Behavior using the button
Click and hold an item in the list and then drag away like you want to cancel
I have very similar issue it might be connected. I have CollectionView when using TouchBehavior with LongPressCommand on every item in collection, it disables CollectionView selection functionality, setting IsEnabled="False" on TouchBehavior won't impact collection, basically TouchBehavior blocks CollectionView selection.
Would be nice if TouchBehavior work together with other controls or IsEnabled not only disabled commands but also touch capturing.
Only workaround that I found, put TouchBehavior inside some Grid on top, and when not needed, set Grid visibility to False.
Activity
dainius-r commentedon May 2, 2024
I have very similar issue it might be connected. I have
CollectionViewwhen usingTouchBehaviorwithLongPressCommandon every item in collection, it disablesCollectionViewselection functionality, settingIsEnabled="False"onTouchBehaviorwon't impact collection, basicallyTouchBehaviorblocksCollectionViewselection.Would be nice if
TouchBehaviorwork together with other controls orIsEnablednot only disabled commands but also touch capturing.Only workaround that I found, put
TouchBehaviorinside someGridon top, and when not needed, setGridvisibility toFalse.sumowesley commentedon May 8, 2024
I've just updated the Community.Toolkit.Maui, and the problem still exists on Mac Catalyst.
sumowesley commentedon May 27, 2024
Have there been any updates to this?
colemcarthur commentedon Jun 28, 2024
This bug also occurs when using an external mouse for an iPad.