Skip to content

Commit

Permalink
Fix branches being stuck in extreme speed.
Browse files Browse the repository at this point in the history
  • Loading branch information
amovar18 committed Jan 2, 2025
1 parent f0e98cb commit e6d7a15
Showing 1 changed file with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,28 @@ const Branches = async ({
if (app.isRevisitingNodeInInteractiveMode || noAnimation) {
drawInstantly();
await delay(noAnimation ? 1000 : 0);
return endpoints;

if (app.isAutoExpand) {
return endpoints[1];
} else {
const nextTip = await FlowExpander({
nextTipCoordinates: endpoints,
});

return nextTip;
}
}

if (app.cancelPromise) {
return endpoints;
if (app.isAutoExpand) {
return endpoints[1];
} else {
const nextTip = await FlowExpander({
nextTipCoordinates: endpoints,
});

return nextTip;
}
}

// Clear canvas or update logic (if necessary)
Expand Down

0 comments on commit e6d7a15

Please sign in to comment.