Fix deduplication

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs 2025-05-22 14:02:14 +02:00
parent 5081abdde1
commit 8cc8367335
No known key found for this signature in database

View File

@ -377,7 +377,7 @@ export const isPointInElement = (
const intersections = intersectElementWithLineSegment(
element,
intersector,
).filter((item, pos, arr) => arr.indexOf(item) === pos);
).filter((p, pos, arr) => arr.findIndex((q) => pointsEqual(q, p)) === pos);
return intersections.length % 2 === 1;
};