Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Persistent Active Touches (Bug?)

Discussion in 'Input System' started by smasson, May 19, 2022.

  1. smasson

    smasson

    Joined:
    Feb 3, 2022
    Posts:
    2
    Hi! My scripts are working with Touch.activeTouches on Android and I'm seeing a bug where a touch input in a stationary phase stays indefinitely as in progress.

    My logs show a bit of infos on its attributes :
    Code (CSharp):
    1. SwipePanel:OnEndDrag counter=1, startTime=83.410322998, began=False, ended=False, finger=UnityEngine.InputSystem.EnhancedTouch.Finger, phase=Stationary, pressure=1, inProgress=True, valid=True, isTap=False, time=83.4393309659999, touchId=38, radius=(0.1, 0.1), screenPosition=(602.5, 473.1), tapCount=0, isInProgress=True, startScreenPosition=(594.8, 464.4)
    Has anyone experienced something similar, if so what did you do to fix this? Is there any known issue that does this?

    I think that to reproduce the phone had to change orientation a lot and to receive a lot of inputs while overheating a little. It is hard for us to reproduce it, only a few members of the team can do it on specific versions of Android.