zimjs 16.3.4 → 16.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/zim.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zimjs",
3
- "version": "16.3.4",
3
+ "version": "16.3.5",
4
4
  "type": "module",
5
5
  "main": "./src/zim.js",
6
6
  "types": "./ts-src/typings/zim",
package/src/zim.js CHANGED
@@ -42111,7 +42111,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
42111
42111
  if (node == obj) return;
42112
42112
  if (node.hitTestCircles(obj)) {
42113
42113
  hitObj = obj;
42114
- if (that.bases && (obj.endNode===false || (obj.endNode!==true && obj.base && obj.base.endNode===false) || node.orientation != obj.orientation || (node.creator && node.creator.base && node.creator.base == obj.base))) return;
42114
+ if (that.bases && (obj.endNode===false || (obj.endNode!==true && obj.base && obj.base.endNode===false) || node.orientation != obj.orientation || (node.creator && node.creator.base && node.creator.base == obj.base))) return "no";
42115
42115
  if (node.dropArray) if (node.dropArray.indexOf(obj.dropIndex) == -1) return;
42116
42116
  if (!duplicateLine && node.lineArray && node.lineArray.indexOf(obj.dropIndex) != -1) return;
42117
42117
  if (dropType == "on") return false; // bad will be true
@@ -42120,7 +42120,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
42120
42120
  }
42121
42121
  });
42122
42122
  // loop automatically returns true
42123
- if (bad && !(dropType=="single" && hitCount==1)) {
42123
+ if (bad=="no" || (bad && !(dropType=="single" && hitCount==1))) {
42124
42124
  noConnect(node);
42125
42125
  return;
42126
42126
  } else {