-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Cyleaflet performance and mouse position mismatch #217
Conversation
Debounce looks good! 💪 Do you have any performance numbers for load time before & after adding the debounce? For the click position mismatch, what if if instead of attaching it to the Any idea what is the performance impact of calling |
For 4000 nodes it takes +90s to fully load without debounce and about 2 seconds with debounce.
The
In my computer it takes around 0.13 ms to execute so it should be safe. |
98% reduction in load times... awesome. 🏆 For the second fix, I do still wonder whether calling 💪 💪 💪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 💐
About
This PR fixes #210 and adds a partial solution for #212
Description of changes
cy.resize()
to refresh the position of the mouse on cytoscape component every time that the viewport changes or the elements are dragged. With this solution only the first interaction will have the wrong position of the mouse and it should be correct afterwards. See my full comment in 212.Pre-Merge checklist
npm run build:all
.Reference Issues
Closes #210
Partial fix for #212