Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: mousepressed_outside not registered for all subscribers #28

Open
TurtleP opened this issue Dec 24, 2021 · 1 comment
Open

[Bug]: mousepressed_outside not registered for all subscribers #28

TurtleP opened this issue Dec 24, 2021 · 1 comment

Comments

@TurtleP
Copy link

TurtleP commented Dec 24, 2021

It appears that registering a mousepressed_outside input event does not work for all subscribed elements. Instead, it seems to only handle the last element that had it registered. I did some print debugging for the method invocation and it only printed index 1 and I have two input boxes that should be able to run the method.

@TurtleP
Copy link
Author

TurtleP commented Dec 27, 2021

So this came down to the event subscription firing. When doing the loop over subs, the loop is broken because of return true since the first element is what was pressed outside of. An alternative solution was to check if sub was true and then return true, but this also isn't efficient in my own testing.

Realistically, I think that there should be a queue system. I don't really know how it might work, but I do think it would fix this issue the best.

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

No branches or pull requests

1 participant