Swipe to close modal

I am wondering if there is a way to dismiss a modal by a swipe event instead of a tap. Has anyone done something like that?


I don’t think there is a problem to dismiss a modal on a swipe. To do it you can use the directive added here by Agomik for the swipeUp/swipeDown event (adaptation needed).

Cool, wasn’t aware that (swipe) event handler was available.

Thanks for pointing me in right direction Eclek

Hai maxa i also looking for same solutin can you help me. swipe down to close the modal

I just used (pan)=“dismiss()” on the modal container. Pan works both vertically and horizontally.