mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
parent
ee7c604ec0
commit
c0d11ea98e
2 changed files with 3 additions and 3 deletions
|
@ -109,8 +109,8 @@ var HitResult = Base.extend(/** @lends HitResult# */{
|
|||
// Use _merged property to not repeatetly merge using new Base in
|
||||
// recursion.
|
||||
return options && options._merged ? options : new Base({
|
||||
// Type of item, for instanceof check: 'group', 'layer', 'path',
|
||||
// 'compound-path', 'shape','raster', 'placed-symbol', ...
|
||||
// Type of item, for instanceof check: Group, Layer, Path,
|
||||
// CompoundPath, Shape, Raster, PlacedSymbol, ...
|
||||
type: null,
|
||||
// Tolerance
|
||||
tolerance: paper.settings.hitTolerance,
|
||||
|
|
|
@ -116,7 +116,7 @@ var PlacedSymbol = Item.extend(/** @lends PlacedSymbol# */{
|
|||
},
|
||||
|
||||
_hitTest: function(point, options) {
|
||||
var res = this._symbol._definition._hitTest(point, options);
|
||||
var res = this._symbol._definition.hitTest(point, options);
|
||||
// TODO: When the symbol's definition is a path, should hitResult
|
||||
// contain information like HitResult#curve?
|
||||
if (res)
|
||||
|
|
Loading…
Reference in a new issue