shroom icon indicating copy to clipboard operation
shroom copied to clipboard

Improve onClick/onDoubleClick handling

Open somekindadude opened this issue 5 years ago • 2 comments

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.

somekindadude avatar Jan 20 '21 22:01 somekindadude

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 avatar Jan 21 '21 15:01 jankuss

I believe there should be enough options with

  • event.stopPropagation()
  • event.skip()
  • event.skipExcept()

@somekindadude what do you think?

jankuss avatar Feb 18 '21 20:02 jankuss