Crafty.canvas.bind("Click", function(e) {
console.log(arguments);
// this.tween({alpha: 0.0}, 50);
// this.antigravity();
});
Crafty.addEvent(this, Crafty.stage.elem, "mouseDown", function(e) {
console.log("mouseDown");
// Crafty.addEvent(this, Crafty.stage.elem, "mouseMove", scroll);
// Crafty.addEvent(this, Crafty.stage.elem, "mouseUp", function() {
// Crafty.removeEvent(this, Crafty.stage.elem, "mouseMove", scroll);
// });
});
When I'm trying to bind event to canvas I got an error:
Crafty.canvas.bind is not a function