Description

Get the X and Y position of the mouse in the canvas

Usage

Parameters

  • event {Event}

Example

var el = this.createElement(), self = this;
el.on("click", function(e) {
    var pos = self.getCanvas().getMousePosition(e);
    console.log(pos.x, pos.y);
});

Discussion