diff --git a/src/pixi/InteractionManager.js b/src/pixi/InteractionManager.js index b581b3a..6052cd1 100644 --- a/src/pixi/InteractionManager.js +++ b/src/pixi/InteractionManager.js @@ -575,7 +575,7 @@ for (var j = 0; j < this.interactiveItems.length; j++) { var item = this.interactiveItems[j]; - if(item.touchmove && item.__touchDatas[touchEvent.identifier]) item.touchmove(touchData); + if(item.touchmove && item.__touchData[touchEvent.identifier]) item.touchmove(touchData); } } }; @@ -626,8 +626,8 @@ //call the function! if(item.touchstart)item.touchstart(touchData); item.__isDown = true; - item.__touchDatas = item.__touchDatas || {}; - item.__touchDatas[touchEvent.identifier] = touchData; + item.__touchData = item.__touchData || {}; + item.__touchData[touchEvent.identifier] = touchData; if(!item.interactiveChildren)break; } @@ -666,9 +666,9 @@ { var item = this.interactiveItems[j]; - if(item.__touchDatas[touchEvent.identifier]) { + if(item.__touchData[touchEvent.identifier]) { - item.__hit = this.hitTest(item, item.__touchDatas[touchEvent.identifier]); + item.__hit = this.hitTest(item, item.__touchData[touchEvent.identifier]); // so this one WAS down... touchData.originalEvent = event || window.event; @@ -697,7 +697,7 @@ item.__isDown = false; } - item.__touchDatas[touchEvent.identifier] = null; + item.__touchData[touchEvent.identifier] = null; } } // remove the touch..