mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2024-11-23 07:47:59 -05:00
Fix Stage + Starling gestures simultaneous recognition
This commit is contained in:
parent
37f6220eb5
commit
c2d31b743b
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue