You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, emojis are not interactive: the user can't click, drag, etc. with them. As @ian-craig said in #1:
No emoji overlay is complete without the ability to interact with them.
The most straightforward form of interaction I can imagine is adding a click handler. Consumers should be able to specify an onClick function that takes in an actor.
A few implementation detail notes:
For accessibility, this means emojis should always be an interactive element (i.e. a <button> for this type of interaction). I think removing the tagName option is therefore reasonable.
Let's make this a general events option with an onClick property, rather than a specific onClick option. We'll eventually want more event handlers than just clicks.
Consider this issue to be a precursor/lead-in to #1. Once we have this issue's infrastructure for an events option added, adding in drag handlers should be a natural next step.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
main
branch of the repository.Overview
Right now, emojis are not interactive: the user can't click, drag, etc. with them. As @ian-craig said in #1:
The most straightforward form of interaction I can imagine is adding a click handler. Consumers should be able to specify an
onClick
function that takes in an actor.A few implementation detail notes:
<button>
for this type of interaction). I think removing thetagName
option is therefore reasonable.events
option with anonClick
property, rather than a specificonClick
option. We'll eventually want more event handlers than just clicks.Additional Info
Consider this issue to be a precursor/lead-in to #1. Once we have this issue's infrastructure for an
events
option added, adding in drag handlers should be a natural next step.The text was updated successfully, but these errors were encountered: