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

animateToStaticPosition() is continuously called even when timeout has been fired #1

Closed
marcodiiga opened this issue Mar 31, 2015 · 1 comment
Assignees
Labels

Comments

@marcodiiga
Copy link
Owner

The animateToStaticPosition call (just to finalize connectors) is causing an endless loop even when the subtree has reached equilibrium and/or timeout has been fired

this.stabilityTimeout = setTimeout(function () {
  thisNode.$map.rootNode.stopSubtreeMoving = true;
  thisNode.$map.rootNode.animateToStaticPosition (); // causing recursion
  console.log ("MOVEMENT STOPPED TIMEOUT"); // debug
}, MOVEMENT_TIMEOUT * 1000);
@marcodiiga marcodiiga self-assigned this Mar 31, 2015
@marcodiiga marcodiiga added the bug label Mar 31, 2015
@marcodiiga
Copy link
Owner Author

FYI: fixed by e9077f9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant