mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-03-29 21:50:35 -04:00
Minor changes
This commit is contained in:
parent
7278e863d4
commit
7bacbf087b
1 changed files with 5 additions and 3 deletions
|
@ -200,20 +200,22 @@ package org.gestouch.core
|
|||
var gesturesForTouch:Vector.<Gesture> = _gesturesForTouchMap[touch] as Vector.<Gesture>;
|
||||
if (!gesturesForTouch)
|
||||
{
|
||||
gesturesForTouch = _gesturesForTouchMap[touch] = new Vector.<Gesture>();
|
||||
gesturesForTouch = new Vector.<Gesture>();
|
||||
_gesturesForTouchMap[touch] = gesturesForTouch;
|
||||
}
|
||||
else
|
||||
{
|
||||
// touch object may be pooled in the future
|
||||
gesturesForTouch.length = 0;
|
||||
}
|
||||
|
||||
var target:Object = touch.target;
|
||||
const displayListAdapter:IDisplayListAdapter = Gestouch.gestouch_internal::getDisplayListAdapter(target);
|
||||
const hierarchy:Vector.<Object> = displayListAdapter.getHierarchy(target);
|
||||
if (!hierarchy)
|
||||
if (!displayListAdapter)
|
||||
{
|
||||
throw new Error("Display list adapter not found for target of type '" + getQualifiedClassName(target) + "'.");
|
||||
}
|
||||
const hierarchy:Vector.<Object> = displayListAdapter.getHierarchy(target);
|
||||
const hierarchyLength:uint = hierarchy.length;
|
||||
if (hierarchyLength == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue