Fix Stage + Starling gestures simultaneous recognition

This commit is contained in:
Pavel fljot 2012-07-05 10:17:53 +03:00
parent 37f6220eb5
commit c2d31b743b

View file

@ -1,5 +1,6 @@
package org.gestouch.core
{
import flash.display.Stage;
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
import flash.geom.Point;
@ -43,6 +44,10 @@ package org.gestouch.core
public function contains(object:Object):Boolean
{
const targetAsDOC:DisplayObjectContainer = this.target as DisplayObjectContainer;
if (targetAsDOC is Stage)
{
return true;
}
const objectAsDO:DisplayObject = object as DisplayObject;
if (objectAsDO)
{