-
Notifications
You must be signed in to change notification settings - Fork 182
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
Feat/right click #92
Feat/right click #92
Conversation
Thanks @tibotiber - this is a good feature to have. Can you remove all the build files and only keep the ones in "src"? It will be easier for me to review. I'll rebuild everything manually before publishing to npm. |
@williamngan, I've reverted the commits. You better squash this when you merge, or if you prefer that I rebase, let me know. I'm leaving the |
Great to have this event passed into callback from advanced functionality. Thanks @tibotiber |
Hi @williamngan,
These suggested changes pass the
MouseEvent
through UIs so we can differentiate between left and right clicks (among others I guess). I left theevt
at the end and tested that it is backward compatible. The new API signature is:As you can see
onClick
now provides the MouseEvent as well which means we can test a bunch of stuff, e.g. differentiate left and right clicks.Taking any feedback you may have.