Skip to content
Permalink
Browse files

Fixed an issue with UI released/cancelled events.

  • Loading branch information...
valyard committed Jul 26, 2017
1 parent 1099a02 commit 42083907f8db3494480179cee47e3fafd54155c4
Showing with 2 additions and 6 deletions.
  1. +2 −6 Source/Assets/TouchScript/Scripts/Layers/UI/TouchScriptInputModule.cs
@@ -76,8 +76,8 @@ private TouchScriptInputModule()
if (raycastersProp == null)
{
raycastersProp = Type.GetType(Assembly.CreateQualifiedName("UnityEngine.UI", "UnityEngine.EventSystems.RaycasterManager")).
GetField("s_Raycasters", BindingFlags.NonPublic | BindingFlags.Static);
canvasProp = typeof (GraphicRaycaster).GetProperty("canvas", BindingFlags.NonPublic | BindingFlags.Instance);
GetField("s_Raycasters", BindingFlags.NonPublic | BindingFlags.Static);
canvasProp = typeof(GraphicRaycaster).GetProperty("canvas", BindingFlags.NonPublic | BindingFlags.Instance);
}
}

@@ -569,9 +569,7 @@ public virtual void ProcessReleased(object sender, PointerEventArgs pointerEvent
for (var i = 0; i < count; i++)
{
var pointer = pointers[i];

var over = pointer.GetOverData();
if (over.Type != HitData.HitType.UI && over.Type != HitData.HitType.ScreenSpace) continue;

PointerEventData data;
GetPointerData(pointer.Id, out data, true);
@@ -622,9 +620,7 @@ public virtual void ProcessCancelled(object sender, PointerEventArgs pointerEven
for (var i = 0; i < count; i++)
{
var pointer = pointers[i];

var over = pointer.GetOverData();
if (over.Type != HitData.HitType.UI && over.Type != HitData.HitType.ScreenSpace) continue;

PointerEventData data;
GetPointerData(pointer.Id, out data, true);

0 comments on commit 4208390

Please sign in to comment.
You can’t perform that action at this time.