vue-final / vue-final-modal

🍕Vue Final Modal is a tiny, renderless, mobile-friendly, feature-rich modal component for Vue.js.
https://vue-final-modal.org
MIT License
903 stars 97 forks source link

Swipe event #339

Closed lyneal closed 1 year ago

lyneal commented 1 year ago

Hello,

Would it be possible to add events related to the "swipeToClose" functionality? The idea is to let the possibility to trigger a function when the modal is swiped (not necessarily to close the modal).

I propose two different solutions:

Thanks in advance for your feedback and your work on this project.

hunterliu1003 commented 1 year ago

Thanks for you suggestion. I am sorry that currently I don't plan to bring more props or events relate to swipe, everytime I add new props or events, it brings more feature request for more usage of edge cases. I want to keep VueFinalModal as simple as possible (because it's already complex to me) 😅. If you really need this feature, you can create a HOC yourself with useSwipe in vueuse.