Skip to content

Commit

Permalink
Merge pull request #26 from yannisgu/master
Browse files Browse the repository at this point in the history
fix app crashes on Android
  • Loading branch information
Cheesebaron authored Feb 10, 2025
2 parents 06d117c + 650d9bc commit 5964bd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/TouchTracking/TouchTracking.Droid/TouchHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Android.Views;
using Android.Views;
using System;
using System.Collections.Generic;

Expand Down Expand Up @@ -105,7 +105,10 @@ private void OnTouch(object sender, View.TouchEventArgs args)
case MotionEventActions.PointerDown:
FireEvent(this, id, TouchActionType.Pressed, screenPointerCoords, true);

if (!_idToTouchHandlerDictionary.ContainsKey(id))
{
_idToTouchHandlerDictionary.Add(id, this);
}

_capture = Capture;

Expand Down

0 comments on commit 5964bd4

Please sign in to comment.