Skip to content

Commit

Permalink
Merge pull request #667 from JohnBrookes/TouchMangerFix1
Browse files Browse the repository at this point in the history
Fix for TouchManager and stage2d touch issues
  • Loading branch information
rob-bateman committed Jan 24, 2014
2 parents a6f6667 + ddd736f commit e795812
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/away3d/core/managers/Touch3DManager.as
Expand Up @@ -207,6 +207,9 @@ package away3d.core.managers
{

var touch:TouchPoint = _touchPointFromId[ event.touchPointID ];

if (!touch) return;

touch.x = event.stageX;
touch.y = event.stageY;

Expand All @@ -222,6 +225,8 @@ package away3d.core.managers

var touch:TouchPoint = _touchPointFromId[ event.touchPointID ];

if (!touch) return;

_collidingObject = _collidingObjectFromTouchId[ touch.id ];
if (_collidingObject)
queueDispatch(TouchEvent3D.TOUCH_END, event, _collidingObject, touch);
Expand Down

0 comments on commit e795812

Please sign in to comment.