eCollect / vue-swipe-actions

iOS style swipe actions
https://ecollect.github.io/vue-swipe-actions/
MIT License
232 stars 47 forks source link

swipeout:click on the SwipeOut component? #32

Closed drewrawitz closed 5 years ago

drewrawitz commented 5 years ago

Hi there!

I see that you can use swipeout:click on the main SwipeList component, but is there a way we can also use that when using the SwipeOut component?

If I put a regular @click event on my main div inside the template, then the click event gets triggered even when I'm swiping left / right. This is problematic because I'm going to be opening up a modal on click, and right now that modal keeps popping up when I'm just trying to swipe right to view my actions menu.

Let me know if you have any ideas. Thanks!

drewrawitz commented 5 years ago

Ah, this issue wasn't related to vue-swipe-actions but something in my application CSS (pointer-events: all) was messing with the click event. My bad!