Skip to content

Add event listeners #103

@JakeSidSmith

Description

@JakeSidSmith

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement ✨Additional features or API cleanup

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions