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 and BackgroundInputTransparent=True (no background visible element).
  • the AswinPage is broken : CloseWhenBackgroundIsClicked=True and BackgroundInputTransparent=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

Most upvoted comments

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.