We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! I want to create nodes in the click event (editor.on('click)) exactly at the position where the cursor is at this moment.
Just using e.x and e.y works fine until I'm moving around with the mouse. Then, new nodes all become an offset and aren't fixed to the cursor anymore.
Is there any event property, which returns the offset-calculated x/y position or how am I able to get it? Thanks in advance!
The text was updated successfully, but these errors were encountered:
View demo example in function addNodeToDrawFlow
addNodeToDrawFlow
https://github.com/jerosoler/Drawflow/blob/ef8a88cdfbf2010cc0b641b94278be6db413938b/index.html#L253C1-L254C1
Sorry, something went wrong.
jerosoler
No branches or pull requests
Hi!
I want to create nodes in the click event (editor.on('click)) exactly at the position where the cursor is at this moment.
Just using e.x and e.y works fine until I'm moving around with the mouse. Then, new nodes all become an offset and aren't fixed to the cursor anymore.
Is there any event property, which returns the offset-calculated x/y position or how am I able to get it?
Thanks in advance!
The text was updated successfully, but these errors were encountered: