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

Remove forced simulation restart from d3 drag event #24

Open
replygirl opened this issue Jun 12, 2020 · 0 comments
Open

Remove forced simulation restart from d3 drag event #24

replygirl opened this issue Jun 12, 2020 · 0 comments
Labels
✨ optimization Improvements under the hood 👋 help wanted Extra attention is needed

Comments

@replygirl
Copy link
Collaborator

Previously, after a couple seconds of dragging, the simulation would stop and the svg would no longer be interactive.

I fixed this by forcing a simulation restart on every drag—i.e., every time the cursor moves while dragging. This is correct for drag starts, but while dragging this slows down the framerate a little.

Would b nice to find a way out of my hacky solution

This SO question was not helpful

@replygirl replygirl added ✨ optimization Improvements under the hood 👋 help wanted Extra attention is needed labels Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ optimization Improvements under the hood 👋 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant