diff --git a/src/org/gestouch/core/GesturesManager.as b/src/org/gestouch/core/GesturesManager.as index 61ee643..644860d 100644 --- a/src/org/gestouch/core/GesturesManager.as +++ b/src/org/gestouch/core/GesturesManager.as @@ -217,7 +217,7 @@ package org.gestouch.core { throw new Error("Display list adapter not found for target of type '" + getQualifiedClassName(target) + "'."); } - const hierarchy:Vector. = displayListAdapter.getHierarchy(target); + const hierarchy:Vector. = displayListAdapter.getHierarchy(target, touch); const hierarchyLength:uint = hierarchy.length; if (hierarchyLength == 0) { diff --git a/src/org/gestouch/core/IDisplayListAdapter.as b/src/org/gestouch/core/IDisplayListAdapter.as index d5f69e2..6cd5826 100644 --- a/src/org/gestouch/core/IDisplayListAdapter.as +++ b/src/org/gestouch/core/IDisplayListAdapter.as @@ -1,11 +1,11 @@ package org.gestouch.core { - /** +/** * @author Pavel fljot */ public interface IDisplayListAdapter extends IGestureTargetAdapter { - function getHierarchy(target:Object):Vector.; + function getHierarchy(target:Object, touch:Touch):Vector.; function reflect():Class; } diff --git a/src/org/gestouch/extensions/native/NativeDisplayListAdapter.as b/src/org/gestouch/extensions/native/NativeDisplayListAdapter.as index 101a605..5419a43 100644 --- a/src/org/gestouch/extensions/native/NativeDisplayListAdapter.as +++ b/src/org/gestouch/extensions/native/NativeDisplayListAdapter.as @@ -1,14 +1,14 @@ package org.gestouch.extensions.native { - import flash.display.DisplayObject; - import flash.display.DisplayObjectContainer; - import flash.display.Stage; - import flash.geom.Point; - import flash.utils.Dictionary; - import org.gestouch.core.IDisplayListAdapter; +import flash.display.DisplayObject; +import flash.display.DisplayObjectContainer; +import flash.display.Stage; +import flash.utils.Dictionary; +import org.gestouch.core.IDisplayListAdapter; +import org.gestouch.core.Touch; - /** +/** * @author Pavel fljot */ final public class NativeDisplayListAdapter implements IDisplayListAdapter @@ -74,11 +74,11 @@ package org.gestouch.extensions.native } - public function getHierarchy(genericTarget:Object):Vector. + public function getHierarchy(genericObj:Object, touch:Touch):Vector. { var list:Vector. = new Vector.(); var i:uint = 0; - var target:DisplayObject = genericTarget as DisplayObject; + var target:DisplayObject = genericObj as DisplayObject; while (target) { list[i] = target; diff --git a/src/org/gestouch/extensions/starling/StarlingDisplayListAdapter.as b/src/org/gestouch/extensions/starling/StarlingDisplayListAdapter.as index cc19f50..3af58bc 100644 --- a/src/org/gestouch/extensions/starling/StarlingDisplayListAdapter.as +++ b/src/org/gestouch/extensions/starling/StarlingDisplayListAdapter.as @@ -1,14 +1,11 @@ package org.gestouch.extensions.starling { - import starling.display.DisplayObject; - import starling.display.DisplayObjectContainer; +import flash.utils.Dictionary; - import org.gestouch.core.IDisplayListAdapter; +import org.gestouch.core.IDisplayListAdapter; +import org.gestouch.core.Touch; - import flash.utils.Dictionary; - - - /** +/** * @author Pavel fljot */ final public class StarlingDisplayListAdapter implements IDisplayListAdapter @@ -44,11 +41,11 @@ package org.gestouch.extensions.starling } - public function getHierarchy(genericTarget:Object):Vector. + public function getHierarchy(target:Object, touch:Touch):Vector. { var list:Vector. = new Vector.(); var i:uint = 0; - var target:DisplayObject = genericTarget as DisplayObject; + var target:DisplayObject = target as DisplayObject; while (target) { list[i] = target;