Swipe to close modal


#1

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?

Regards,
Michael


#2

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).


#3

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

Thanks for pointing me in right direction Eclek


#4

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


#5

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