Skip to content

Commit

Permalink
fix: fixed issue with polygon mask bounce on edges
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobruni committed Oct 6, 2022
1 parent 5b7e00f commit 3d9f1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/polygonMask/src/utils.ts
Expand Up @@ -148,7 +148,7 @@ export function calcClosestPtOnSegment(
// calc nearest pt on line
res = {
x: s1.x + dxx * t,
y: s1.x + dyy * t,
y: s1.y + dyy * t,
isOnSegment: t >= 0 && t <= 1,
};

Expand Down

0 comments on commit 3d9f1f5

Please sign in to comment.