How do I fix the script error: Unable to preventDefault inside passive event listener .... ? #2843
Replies: 3 comments 6 replies
-
How did you get this specific error? It's not what I see in the Kitchen Sink application. Are you calling You should be able to prevent the error like this: joint.mvc.$.event.special.touchstart = {
setup: function(_, ns, handle) {
this.addEventListener("touchstart", handle, { passive: false });
}
}; |
Beta Was this translation helpful? Give feedback.
-
When developing a web, I do cross-testing with Chrome and Edge. The versions are as follows. The symptoms occur in both browsers. |
Beta Was this translation helpful? Give feedback.
-
I was able to reproduce it when I simulated a mobile device (to make the browser trigger This CSS solved the problem for me: .joint-paper {
touch-action: pan-y pinch-zoom;
} Please see https://developer.chrome.com/blog/scrolling-intervention for more details. |
Beta Was this translation helpful? Give feedback.
-
Introduction
It always happens when I drag from stencil to paper. What should I do?
I was just going to ignore it, but I don't think I can ignore it.
It also occurs in the kitchen app.
Steps to reproduce
No response
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS+
Beta Was this translation helpful? Give feedback.
All reactions