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

Need a more flexible event system #19

Open
Icemic opened this issue Dec 7, 2016 · 0 comments
Open

Need a more flexible event system #19

Icemic opened this issue Dec 7, 2016 · 0 comments

Comments

@Icemic
Copy link
Collaborator

Icemic commented Dec 7, 2016

The current event system is divided into three layers:

  • PIXI events
  • PIXI events encapsulated with React
  • Connect React event of Surface component to the signal system (eg click tap)

In the third layer, the component with click event listener will be set to buttonMode = true, but in most cases this is not appropriate, such as "Click Execute Script" this function, need to listen the entire stage layer, the cursor should be Normal status.
It's a good idea to have components set up their own buttonMode or even kept full control of cursor type.

On the keyboard, wheel events, also need to consider a better solution

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

No branches or pull requests

1 participant