Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kumilingus committed Oct 27, 2024
1 parent df0962e commit 527aa60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/joint-core/src/dia/LinkView.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const LinkView = CellView.extend({
initFlag: [Flags.RENDER, Flags.SOURCE, Flags.TARGET, Flags.TOOLS],

UPDATE_PRIORITY: 1,
EPSILON: 1e-6,

confirmUpdate: function(flags, opt) {

Expand Down Expand Up @@ -840,7 +841,7 @@ export const LinkView = CellView.extend({
// There is currently no method to determine if a path contains a point.
const area = new Rect(point);
// Intersection with a zero-size area is not possible.
area.inflate(1e-6);
area.inflate(this.EPSILON);
return this.isIntersecting(area);
},

Expand Down

0 comments on commit 527aa60

Please sign in to comment.