adamRenny / LayerJS

2D Canvas Library supporting Layered Rendering
MIT License
8 stars 1 forks source link

Multiple activeTargets #76

Open aaronholsonege opened 11 years ago

aaronholsonege commented 11 years ago

In its current state, Scene does not allow for multiple activeTargets, which means onMouseOver and onMouseOut events are not truly accurate.

Use case: A RenderableGroup has a Renderable. Both are the same size, and in the same location. Scene will only trigger mouse over/out events for the Renderable and ignore the RenderableGroup.

I propose storing all items returned from the hitStack as the activeTargets instead of just the last one.

aaronholsonege commented 11 years ago

Initial enhancement made in https://github.com/adamRenny/LayerJS/tree/feature/%2376

Still requires testing.