Skip to content

Commit

Permalink
fix(connectors.Jumpover): jumps on stacked links
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKanera committed Jul 10, 2023
1 parent fdeffa4 commit 812aece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connectors/jumpover.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function updateJumpOver(paper) {
function findLineIntersections(line, crossCheckLines) {
return util.toArray(crossCheckLines).reduce(function(res, crossCheckLine) {
var intersection = line.intersection(crossCheckLine);
if (intersection) {
if (intersection && !(line.containsPoint(crossCheckLine.start) || line.containsPoint(crossCheckLine.end))) {
res.push(intersection);
}
return res;
Expand Down

0 comments on commit 812aece

Please sign in to comment.