diff --git a/src/pixi/InteractionManager.js b/src/pixi/InteractionManager.js index 709a75a..e7ec825 100644 --- a/src/pixi/InteractionManager.js +++ b/src/pixi/InteractionManager.js @@ -61,6 +61,8 @@ this.last = 0; this.currentCursorStyle = 'inherit'; + + this.mouseOut = false; }; // constructor @@ -386,7 +388,6 @@ for (var i = 0; i < length; i++) { var item = this.interactiveItems[i]; - if(item.__isOver) { this.mouse.target = item; @@ -394,6 +395,12 @@ item.__isOver = false; } } + + this.mouseOut = true; + + // move the mouse to an impossible position + this.mouse.global.x = -10000; + this.mouse.global.y = -10000; }; /** diff --git a/src/pixi/InteractionManager.js b/src/pixi/InteractionManager.js index 709a75a..e7ec825 100644 --- a/src/pixi/InteractionManager.js +++ b/src/pixi/InteractionManager.js @@ -61,6 +61,8 @@ this.last = 0; this.currentCursorStyle = 'inherit'; + + this.mouseOut = false; }; // constructor @@ -386,7 +388,6 @@ for (var i = 0; i < length; i++) { var item = this.interactiveItems[i]; - if(item.__isOver) { this.mouse.target = item; @@ -394,6 +395,12 @@ item.__isOver = false; } } + + this.mouseOut = true; + + // move the mouse to an impossible position + this.mouse.global.x = -10000; + this.mouse.global.y = -10000; }; /** diff --git a/src/pixi/loaders/JsonLoader.js b/src/pixi/loaders/JsonLoader.js index 0a0d8f8..f7d96c3 100644 --- a/src/pixi/loaders/JsonLoader.js +++ b/src/pixi/loaders/JsonLoader.js @@ -61,7 +61,7 @@ * @method load */ PIXI.JsonLoader.prototype.load = function () { - this.ajaxRequest = new PIXI.AjaxRequest(); + this.ajaxRequest = new PIXI.AjaxRequest(this.crossorigin); var scope = this; this.ajaxRequest.onreadystatechange = function () { scope.onJSONLoaded();