Skip to content
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

Unable to preventDefault inside passive event listener due to target being treated as passive #779

Open
mohsennrs opened this issue Sep 16, 2022 · 1 comment

Comments

@mohsennrs
Copy link

I am using the draggable option and when I try to drag the modal in responsive mode I get the error below in the console and the background moves with drag too.

I am using version 2.0.1. I traced the error to the lines below in src/components/Modal.vue file.

document.addEventListener('touchmove', handleDraggableMousemove) document.addEventListener('touchend', handleDraggableMouseup)

I think these listeners should be called with a non-passive flag.

Screenshot from 2022-08-31 15-51-58

I have checked stackoverflow for solutions and 100% sure that this issue is not not related to my code.

@szwss
Copy link

szwss commented Feb 16, 2023

I have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants