TouchPan/TouchPinch Never Enters End State

I am listening to the TouchPan event for an ImageButton, and the input state goes from Start to Change, but never to End, like the docs say:


My code above is just directly printing the UserInputState parameter when TouchPan fires when dragging an ImageButton. This happens regardless of if you end the pan on or off the ImageButton.

Expected behavior

A final firing of TouchPan with Enum.UserInputState.End to occur. Without this, there is no way to know when the touch gesture is over.

UPDATE: This also happens with TouchPinch.

4 Likes

Thanks for the report! We’ll follow up when there’s any update on the issue.

1 Like

Just ran into this bug, but I found a solution for anyone else running into this problem.

Simply use GuiObject.InputEnded to detect the end of the touch gesture!

1 Like