Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/44yu5h/sugarizer into pr/1584
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Laské committed Apr 15, 2024
2 parents 2365de3 + 5a1f217 commit f93a713
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion activities/LabyrinthJS.activity/js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,18 @@ define(["sugar-web/activity/activity", "l10n", "sugar-web/datastore", "sugar-web
if (lastSelected == this) lastSelected = null;
return;
} else if (currentMode == 1) {
if (isSelectedNode(this)) {
unselectNode(this);
lastSelected = null;
}
else { selectNode(this); }
if (lastSelected != null && lastSelected != this) {
createEdge(lastSelected, this);
unselectNode(this);
lastSelected = null;
pushState();
}
lastSelected = this;
if (isSelectedNode(this)) lastSelected = this;
return;
} else {
if (isSelectedNode(this)) {
Expand Down

0 comments on commit f93a713

Please sign in to comment.