-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CloseWhenBackgroundIsClicked=True does not work on iOS #41
Comments
Got the same problem here! |
Got the same problem. Any updates? |
Finding the same problem on Windows. Interesting enough if you set: CloseWhenBackgroundIsClicked to false; & InputTransparent to true, it allows the clickthrough to background at the cost of losing access to content on the popup. Inside version 1.1.0 It would seem that: BackgroundClickedCommand is always null inside popup.cs - meaning the if CanExecute condition is never true, preventing the command to fire but stopping the null exception. |
@tranb3r If you guys want to download the repo, and link Mopups to your app instead of using the nugget, could verify if you believe its a fix for the issue. |
I am also experiencing the issue under MacCatalyst. |
@LuckyDucko |
It does? I'll do some more testing, but i did test and and could confirm there is a difference between the two. |
I've tested the sample AswinPage, on iOS, and when I click on the background, the popup does close now, but the click is propagated to the element behind, even if BackgrouInputTransparent is false. |
someone already mentioned this but the issue exists in Mac catalyst as well. Other than the CloseWhenBackGroundClicked issue, these popups work much nicer than the community toolkit for my apps needs. Could we get a Mac catalyst fix? |
Give it one more test, I did a more in depth dive. it turns out that when I perform a a HitTest, if you return null to that hit test, under the hood iOS attempts to find the next ui interact-able element to fire off, which is why the previous fix wasn't working. I added the same fix to MacCatayst, however, on my computer MacCatalyst seems broken? is it just the sample app that works this way? |
@LuckyDucko In the latest of the sample app, I am seeing Mac catalyst close instantly after the popup opens. The latest Nuget version I have installed in my project though this is not the case and works really well other than the background close issue |
Yes, it think it works now. Thanks! |
Just tested the sample app on Catalyst, the windows do appear and disappear. However they appear to move as soon as the mouse moves and are not waiting for a click. Click, no mouse move -> shows -> mouse move -> vanishes Poking the code a bit, it looks like HitTest() is being called for the mouse movement events. |
I modified the HitTest function in the MacCatalyst PopupWindow. Changed: to: On line 40, this appears to correct the issue for me. |
Thanks guys, sorted on latest release https://github.com/LuckyDucko/Mopups/releases/tag/v1.1.1 |
Thank you for this! |
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:
CloseWhenBackgroundIsClicked=True
andBackgroundInputTransparent=True
(no background visible element).CloseWhenBackgroundIsClicked=True
andBackgroundInputTransparent=False
(visible elements in background).No issue on Android.
Could you please take a look?
Thanks
The text was updated successfully, but these errors were encountered: