luxeengine/alpha

Multiple components overriding mouse events not always getting called

Aidan63 opened this issue · 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.

Thanks, I'll take a look!