jankuss / shroom

Room Rendering Engine for Retros
https://jankuss.github.io/shroom/docs
GNU Lesser General Public License v3.0
62 stars 28 forks source link

Improve onClick/onDoubleClick handling #107

Open somekindadude opened 3 years ago

somekindadude commented 3 years ago

There needs to be a way to stop propagation between the click events for item, avatar and rooms. E.g. when you click an avatar you don't click through to the room or the item. This makes it a little difficult to cancel walking or decide when to hide infostand elements when a blank space is clicked.

It would be better if there was a single event that fired rather than 3 events for each.

jankuss commented 3 years ago

I believe right now, a click on an avatar won't trigger the click on a furniture behind it.

The only thing not working correctly right now is the tile click when you click on Avatar/Furniture, since they are not using the same event manager. We should make it so they exist in the same event manager, so we can handle it accordingly.

jankuss commented 3 years ago

I believe there should be enough options with

@somekindadude what do you think?