avg-core
avg-core copied to clipboard
Need a more flexible event system
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