diff --git a/src/interaction/InteractionManager.js b/src/interaction/InteractionManager.js index d5c1467..f33c40a 100644 --- a/src/interaction/InteractionManager.js +++ b/src/interaction/InteractionManager.js @@ -112,6 +112,14 @@ */ this.eventsAdded = false; + /** + * Is the mouse hovering over the renderer? + * + * @member {boolean} + * @private + */ + this.mouseOverRenderer = false; + //this will make it so that you don't have to call bind all the time /** @@ -784,6 +792,8 @@ */ onMouseOut(event) { + this.mouseOverRenderer = false; + this.mouse.originalEvent = event; this.eventData.data = this.mouse; this.eventData.stopped = false; @@ -810,7 +820,7 @@ */ processMouseOverOut( displayObject, hit ) { - if(hit) + if(hit && this.mouseOverRenderer) { if(!displayObject._over) { @@ -841,6 +851,8 @@ */ onMouseOver(event) { + this.mouseOverRenderer = true; + this.mouse.originalEvent = event; this.eventData.data = this.mouse; this.eventData.stopped = false;