Perform point conversion along with HitResult.getOptions().

This commit is contained in:
Jürg Lehni 2011-07-08 23:25:27 +02:00
parent cc00f40532
commit 9db96ae898
3 changed files with 8 additions and 3 deletions
src/project

View file

@ -182,7 +182,8 @@ var Project = this.Project = Base.extend(/** @lends Project# */{
},
hitTest: function(point, options) {
options = HitResult.getOptions(options);
options = HitResult.getOptions(point, options);
point = options.point;
// Loop backwards, so layers that get drawn last are tested first
for (var i = this.layers.length - 1; i >= 0; i--) {
var res = this.layers[i].hitTest(point, options);