Skip to content

Commit

Permalink
Disable autozoom on active element
Browse files Browse the repository at this point in the history
  • Loading branch information
FeniXb3 committed Jul 30, 2023
1 parent 3feb38c commit fceae4c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions public/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,15 @@ export class Node {
this.markAsUsed();
this.connections.forEach(c => {
if (!nextConnection || c.description == nextConnection) {
this.init(this, c.target, state, nextConnection, (state, nextConnection) => {
if (this.tweenActiveElement) {
this.init(this, c.target, state, nextConnection, (state, nextConnection) => {
c.target.perform(state);
});
this.animate();
}
else {
c.target.perform(state);
});
this.animate();
}
}
});
}, 500);
Expand Down

0 comments on commit fceae4c

Please sign in to comment.