alpha icon indicating copy to clipboard operation
alpha copied to clipboard

Multiple components overriding mouse events not always getting called

Open Aidan63 opened this issue 8 years ago • 1 comments

If you have two components which both override onmousedown and attach them to the same entity both of the components onmousedown events will be called as expected. If you then remove one of those components the remaining one doesn't seem to receive any onmousedown events until the other is re-added.

If the entity only starts with one of the components attached then it will run onmousedown fine. It's not until the other component has been added and then one of them removed that the other stops running its event. This also happens with onmouseup and onmousemove.

Gist contains code which reproduces this issue. https://gist.github.com/Aidan63/f542cff44ff9f5137829a6cdd8803524

Using luxe through the snowfall haxelib package on Ubuntu 17.04.

Aidan63 avatar Jun 08 '17 12:06 Aidan63

Thanks, I'll take a look!

ruby0x1 avatar Jun 08 '17 12:06 ruby0x1