diff --git a/src/pixi/InteractionData.js b/src/pixi/InteractionData.js index 4249bd7..fbc8636 100644 --- a/src/pixi/InteractionData.js +++ b/src/pixi/InteractionData.js @@ -43,10 +43,10 @@ * @param [point] {Point} A Point object in which to store the value, optional (otherwise will create a new point) * @return {Point} A point containing the coordinates of the InteractionData position relative to the DisplayObject */ -PIXI.InteractionData.prototype.getLocalPosition = function(displayObject, point, global) +PIXI.InteractionData.prototype.getLocalPosition = function(displayObject, point, globalPos) { var worldTransform = displayObject.worldTransform; - var global = global ? global : this.global; + var global = globalPos ? globalPos : this.global; // do a cheeky transform to get the mouse coords; var a00 = worldTransform.a, a01 = worldTransform.c, a02 = worldTransform.tx,