Mopups: CloseWhenBackgroundIsClicked=True does not work on iOS
CloseWhenBackgroundIsClicked=True
does not work on iOS.
Unless you also set BackgroundInputTransparent=True
, but then the click is passed to the element that is visible, which is probably not what you want to do.
On the sample project:
- the loginPage is ok :
CloseWhenBackgroundIsClicked=True
andBackgroundInputTransparent=True
(no background visible element). - the AswinPage is broken :
CloseWhenBackgroundIsClicked=True
andBackgroundInputTransparent=False
(visible elements in background).
No issue on Android.
Could you please take a look? Thanks
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 4
- Comments: 17 (8 by maintainers)
Commits related to this issue
- Mopups issue #41 MacCatalyst fix — committed to PaulMDemers/Mopups by PaulMDemers a year ago
- Merge pull request #1 from PaulMDemers/PaulMDemers-patch-1 Mopups issue #41 MacCatalyst fix — committed to PaulMDemers/Mopups by PaulMDemers a year ago
I modified the HitTest function in the MacCatalyst PopupWindow.
Changed: formsElement.SendBackgroundClick();
to: if(uievent?.ButtonMask != 0) formsElement.SendBackgroundClick();
On line 40, this appears to correct the issue for me.