Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Multiple components overriding mouse events not always getting called #428

Open
Aidan63 opened this issue Jun 8, 2017 · 1 comment
Open

Comments

@Aidan63
Copy link

Aidan63 commented Jun 8, 2017

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.

@ruby0x1
Copy link
Member

ruby0x1 commented Jun 8, 2017

Thanks, I'll take a look!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants