Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Move events not delivered when mouse is held down and subscriptions change based on mouse button state #2

Open
hoelzro opened this issue Jun 13, 2016 · 0 comments

Comments

@hoelzro
Copy link

hoelzro commented Jun 13, 2016

Sorry for the strange issue title - I don't know of a better way to describe this. Here's some example code:

https://gist.github.com/hoelzro/7ec33aaf951cdc5e86eaa9683926fc66

In short, subscriptions is set to [ups, moves] if the mouse is down, and [downs] otherwise. With this configuration, move events don't end up getting delivered to the update function. If you change the isDown == true branch to be [ups, downs, moves], move events are delivered.

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

1 participant