More than one touch movement at the same time (Android, Touch)


I did not find the answer on the Internet and on the forum too.

I want to make it so that when you move your finger across the Android screen (TouchPhase.Moved), a line (LineRenderer) is displayed.

Getting the first and last point:

                foreach (Touch touch in Input.touches)
                    if (touch.phase == TouchPhase.Moved)
                        firstPointCoord = Camera.main.ScreenToWorldPoint(touch.rawPosition);
                        lastPointCoord = Camera.main.ScreenToWorldPoint(touch.position);

and then passing them to the LineRenderer.

The problem is that when I make two movements at the same time, with two fingers, I get incorrect coordinates.
The line could go like this:
Or like this:

I tried getting the first coordinate (TouchPhase.Began) and then the second one (TouchPhase.Ended).
I tried to limit the receipt of coordinates in time. And I still get the same result.

I want the line to go from the place where the finger touched the screen and end approximately where the same finger was removed.

I have not developed for android before, so I don’t know if it’s possible at all?
What am I doing wrong?

The question is removed.

“SystemInfo.deviceType == DeviceType.Handheld” doesn’t work in Editor.