I am contacting you again because the preventDefault script error was not resolved. #2873
Replies: 1 comment
-
Closing as duplicate of #2843. @james-ep01 Let's continue the discussion in the original thread to ensure all relevant information stays in one place for anyone interested. Please see my #2843 (comment). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
Unable to preventDefault inside passive event listener due to target being treated as passive. I'll ask again.
I wrote about what happens on my PC's Chrome and Edge browsers before. It keeps happening even when I change my PC. See the video below.
The video below is a sample app from the jointjs homepage.
preventdefault_script_error.mp4
And I simply tested it in my app.
The video below is a test video from my app.
At first, a script error occurs, and if you remove preventDefault() from the error location in the joint-plus.js file, you can see that the error does not occur. The error does not occur, but there is a problem with the operation connected to this event.
preventdefault_script_error_test.mp4
And
In the last question, you asked me to put the code below in my code, but the same script error occurs no matter where I put it in my code.
The code you gave me:
joint.mvc.$.event.special.touchstart = {
setup: function(_, ns, handle) {
this.addEventListener("touchstart", handle, { passive: false });
}
};
At what point in the code should I put the code above to resolve it?
How should I resolve this issue?
Steps to reproduce
No response
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS, JointJS+
Beta Was this translation helpful? Give feedback.
All reactions