Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event listeners #103

Open
JakeSidSmith opened this issue Feb 23, 2018 · 0 comments
Open

Add event listeners #103

JakeSidSmith opened this issue Feb 23, 2018 · 0 comments
Labels
enhancement ✨ Additional features or API cleanup

Comments

@JakeSidSmith
Copy link
Owner

JakeSidSmith commented Feb 23, 2018

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

@JakeSidSmith JakeSidSmith added the enhancement ✨ Additional features or API cleanup label Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ Additional features or API cleanup
Projects
None yet
Development

No branches or pull requests

1 participant