How drap modal to close

Hi all,

I need implement a drap-up/drap-down event to close modal with animations effects swipecard-Like.

Thank you so muck!

Maybe with a directive…

Put it on a dom-event and listen on “touchmove” event and get x, y coords.
Then you can check if the user makes something like “scroll up”, “scroll down”.

And then show and hide the modal.

1 Like