-
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
[Intervention] Ignored attempt to cancel a touchmove event when swiping #77
Comments
Hi, @sts-ryan-holton , Sorry for late response, I'm in my vacation these days. Could you tell me more detail about your environment? I never seen these error before, How it be happen? |
It's with a fresh install, I've had to revert to using some other package but really wanted to use this since it contains good options for touch, sadly though something recent has stopped working in this library and thus the above error and code since I have not changed any code. |
I have checked this error and tested in Chrome 84. This is caused by calling |
@jerrybendy Remove the <span
v-touch:swipe.right="swipePrevPage"
v-touch:swipe.left="swipeNextPage"
class="page-swipe-trigger">
</span> |
I can't make sure. There is no I have made a small change in code in line 152. + if (event.cancelable) {
event.preventDefault();
+ } You can try this. |
@jerrybendy Thanks! I did read up online in a few places that the error can be resolved with adding a check for |
You can try to change codes in |
Cool, I'm on holiday at the moment, I'll get around to trying this within the next week or two |
@jerrybendy Hi, I've just tried this and it doesn't seem to make any difference. Doesn't appear to break anything, neither allow my swiping to function correctly :( |
ah... maybe you can try to change the |
Hi @jerrybendy I'm dealing with the same + if (binding.modifiers.prevent && e.cancelable) {
- if (binding.modifiers.prevent) {
e.preventDefault();
} |
@ErickPetru I have made this change on |
Nice @jerrybendy, no console error logged anymore. |
I'm using the
vue2-touch-events
plugin to create some "native like" swiping behaviour for a Nuxt JS hybrid app built with Cordova. I've implemented an element (positioned absolutely) over the majority of the screen that once swiped on the$router
pushes to a new page.This has been working fine up until recently where I have noticed an error being fired in my console:
I'm not too sure why I'm experiencing this error, and have attempted to revert some things which has made no difference. The code in question is attached:
HTML Vue JS markup
Implemented methods
For refernece, I'm using version 2.3.0 of the plugin, and have it configured like this...
If someone could help me with why I'm experiencing this error, the error shows up when trying to swipe.
The text was updated successfully, but these errors were encountered: