getObjectsUnderPoint method

  1. @override
List<DisplayObject> getObjectsUnderPoint (Point<num> point)

Returns a list of display objects that lie under the specified point and are children (or grandchildren, and so on) of this display object container.

The point parameter is in the local coordinate system of this display object container.


List<DisplayObject> getObjectsUnderPoint(Point<num> point) {
  var result = super.getObjectsUnderPoint(point);
  if (_graphics != null && _graphics.hitTest(point.x, point.y)) {
    result.insert(0, this);
  return result;