mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Fix wrong HitResult type when hitting Segment#point.
This commit is contained in:
parent
7c8409d7c2
commit
783d2782c0
1 changed files with 1 additions and 1 deletions
|
@ -1274,7 +1274,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
// Note, when checking for ends, we don't also check for handles,
|
||||
// since this will happen afterwards in a separate loop, see below.
|
||||
return (ends || options.segments)
|
||||
&& checkPoint(seg, point, 'point')
|
||||
&& checkPoint(seg, point, 'segment')
|
||||
|| (!ends && options.handles) && (
|
||||
checkPoint(seg, point.add(seg._handleIn), 'handle-in') ||
|
||||
checkPoint(seg, point.add(seg._handleOut), 'handle-out'));
|
||||
|
|
Loading…
Reference in a new issue