Add .on and .off (alias .bind and .unbind) methods for listening to mouse events etc.
These should return custom events with the mouse position relative to the canvas (taking density into account).
These should warn if many event listeners are added within a short period of time (to prevent adding listeners within a draw loop).
Add
.onand.off(alias.bindand.unbind) methods for listening to mouse events etc.These should return custom events with the mouse position relative to the canvas (taking density into account).
These should warn if many event listeners are added within a short period of time (to prevent adding listeners within a draw loop).