Introduce project.option.hitTolerance, to control precision of internal hit-tests.

This commit is contained in:
Jürg Lehni 2013-03-01 20:25:46 -08:00
parent 03521796ef
commit 4be5d5086f

View file

@ -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