-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude option #79
Comments
I used the following on the table: v-touch:start="disableSwipe" v-touch:end="enableSwipe" with the 2 methods: methods: { Then a condition in my #app swipeEvent. Had to use a small delay in the enableSwipe though else it was firing it still. Not sure its optimum, please let me know in case there is better option :) |
I too was looking for this in the docs. It would be useful to be able to put a class on an element, e.g:
so that when touching these elements v-touch is not triggered if it's set on the parent. My use case is similar to yours, mobile horizontally scrolling table I need to stop it firing swipes on the parent when interacting with it. |
If the raw event was exposed in the v-touch callback function params we might be able to check for something like that. |
I'm not understand this issue very clearly for my bad English. And @alexcroox mentioned the raw event, all |
@jerrybendy thanks for pointing out the second parameter, I hadn't noticed that! Using that second param I managed to do it like this, however it would be nice if the plugin supported this and with different classes for ignoring different actions eg swipe, touch, swipe direction etc for maximum flexibility.
basically Note |
Is there a way if for example i attach a slideLeft event on my entire #app but want exclude the swipe if on a certain element?
in my case i have a page with a table on mobile where overflow y is on to scroll the table content so this should not fire the on swipe ideally.
Thank you in advance.
The text was updated successfully, but these errors were encountered: