Javascript Kinetic JS 3.6中的鼠标事件

Javascript Kinetic JS 3.6中的鼠标事件,javascript,kineticjs,Javascript,Kineticjs,嗨, 我使用的是KineticJS3.6版本。 鼠标事件在这里不起作用。 我不知道原因。 你能帮我吗 谢谢Vijay它对“点击”也不起作用 this.prototype.bounding = new Kinetic.Shape(function () { var context = this.getContext(); context.beginPath(); context.arc(0, 0, radius, 0, 2 * Math.PI, false); co

嗨, 我使用的是KineticJS3.6版本。 鼠标事件在这里不起作用。 我不知道原因。 你能帮我吗

谢谢Vijay它对“点击”也不起作用

this.prototype.bounding = new Kinetic.Shape(function () {
    var context = this.getContext();
    context.beginPath();
    context.arc(0, 0, radius, 0, 2 * Math.PI, false);
    context.fillStyle = color;
    context.fill();
},"PerspectiveCar");
this.prototype.bounding.vx = 0;
this.prototype.bounding.vy = 0;
this.prototype.bounding.x = positionX;
this.prototype.bounding.y = positionY;    
this.prototype.bounding.on("mousedown", function () {
        alert('Hi');
});
this.prototype.bounding.on("click", function () {
        alert('Hi');
});