Non dismissable modals can be close with swipe down gesture

Hello :wave:

I’ve noticed if the modal is @dimissable={{false}} then it can be close with swipe down gesture on mobile.

Thanks :slightly_smiling_face:

1 Like

Yes I know, what problem does it cause? Not saying I don’t want to fix it, but I just want to understand when it’s a problem.

Also the swipe down is only on backdrop and header, not the whole modal.

2 Likes

I am not sure it’s cause any problem. :thinking: I reported it because of the functionality of non dismissable modal. But it’s probably the same as when you click the Cancel button. It may got some problem if the modal’s goal is block or forces the user to choose from options and the footer buttons not contains Cancel button. I don’t think there are any modal in core which affected with this. But it can affect custom modals, like the Guest Gate Theme Component has a setting to makes the modal dismissable=false and the setting main goal is block the content what now can be easily bypass with swipe down.

But maybe it can be easily fix with touch-action: none? :thinking: I didn’t check it yet…

3 Likes

Ok, I see, I guess that’s a valid reason, will push a fix to correctly follow dismissable value next week :+1: Thanks for the example don.

1 Like

Should be done in:

Thanks

1 Like