Implement standard behavior of #_hitTest() for items without children, based on #_contains().

This should cover the minimum of what's needed for PointText.
This commit is contained in:
Jürg Lehni 2013-06-12 19:30:23 -07:00
parent 463a00bd1e
commit fe10c99d1b
5 changed files with 18 additions and 4 deletions
src/project

View file

@ -331,6 +331,7 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
if (item._boundsSelected) {
// We need to call the internal _getBounds, to get non-
// transformed bounds.
// TODO: Implement caching for these too!
var coords = mx._transformCorners(
item._getBounds('getBounds'));
// Now draw a rectangle that connects the transformed