adamRenny / LayerJS

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

onMouseOver is being called after input is disabled #66

Closed aaronholsonege closed 11 years ago

aaronholsonege commented 11 years ago

When mousing out of a layer very quickly, Renderable.onMouseOver is being triggered despite Input being disabled. It happens in Scene.update when calling Scene.updateActiveTarget.

This is happening because Input.mouse is not being updated on mouseout, so the previous mouse coordinates are being used in Scene.update.

aaronholsonege commented 11 years ago

Ready for Merge: https://github.com/adamRenny/LayerJS/tree/fix/%2366