How to detect second touch released?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Pelli

I am trying to make a pinch to zoom camera following a tutorial from kidscancode. My code isn’t working, and when I started to figure out I found that I can’t detect when mutiple touchs are released.

   if event is InputEventScreenTouch:
            if event.pressed:
                print(“touch pressed:  “ + event.index)
            else:
               print(“touch released: “ + event.index)

So this on an Iphone 8 is printing:

touch pressed: 0
touch pressed: 1

touch released: 0

The event with index 1 is never releasing no matter what I try with my fingers, these can be a bug on iOS??