mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Introduce project.option.hitTolerance, to control precision of internal hit-tests.
This commit is contained in:
parent
03521796ef
commit
4be5d5086f
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ var HitResult = this.HitResult = Base.extend(/** @lends HitResult# */{
|
|||
// Type of item, for instanceof check: PathItem, TexItem, etc
|
||||
type: null,
|
||||
// Tolerance
|
||||
tolerance: 2,
|
||||
tolerance: paper.project.options.hitTolerance || 2,
|
||||
// Hit the fill of items
|
||||
fill: !options,
|
||||
// Hit the curves of path items, taking into account the stroke
|
||||
|
|
Loading…
Reference in a new issue