I draw 2 shapes, one above the other. The getObjectsUnderPoint function returns only one shape even the point is part of both shapes. The point I get in addEventListener handler of the upper shape. Here is full jsfiddle example.
var stage;
function init() {
stage = new createjs.Stage("canvas");
var rect = new createjs.Shape();
rect.graphics.beginFill("#ff0000").drawRect(10, 10, 100, 100);
stage.addChild(rect);
var circle = new createjs.Shape();
circle.graphics.beginFill("#00ff00").drawCircle(60, 60, 40);
circle.addEventListener("click", onClick);
stage.addChild(circle);
stage.update();
}
function onClick(e) {
// the length should be 2: circle + rectangle, but is only 1 ???
alert(stage.getObjectsUnderPoint(e.stageX, e.stageY).length);
}