Input registering random touches

Hello, I have a canvas which I touch with only 2 fingers, but sometimes Unity is registering a third touch.

Here’s the captured image.

My left thumb was pressing position 0, and my right thumb was spamming position 1. At iteration 222, Unity registered a third touch, on position 2.

Any idea how this happens? This bug is killing my game… Help!


Here’s the code of Input Test

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

public class InputTest : MonoBehaviour, IPointerDownHandler
{
	public GameObject textPrefab;

	public void OnPointerDown(PointerEventData eventData)
	{
		Debug.Log("Touch count : " + Input.touchCount);

		if (Input.touchCount >= 3) {
			for (int i = 0; i < Input.touchCount; i++) {
				Debug.Log("Input.touches[" + i + "].position : " + Input.touches*.position);*
  •  		//Create UI text to show finger ID*
    
  •  		GameObject goTemp = GameObject.Instantiate(textPrefab, this.transform.parent);*
    

_ goTemp.GetComponent().text = Input.touches*.fingerId.ToString();_
_ goTemp.transform.position = Input.touches.position;
goTemp.SetActive(true);
}
}
Debug.Log(“=== EVENT DATA ====”);
Debug.Log(“event Data id : " + eventData.pointerId);
Debug.Log(”===================");*_

* }*
}

After testing on some other devices, the bug only happened to my phone. Thanks to @xxmariofer for pointing out.