Fix hit-testing of PlacedSymbols.

Closes #428
This commit is contained in:
Jürg Lehni 2014-04-03 09:21:12 +02:00
parent ee7c604ec0
commit c0d11ea98e
2 changed files with 3 additions and 3 deletions

View file

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

View file

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