TouchPan

Constructor:

TouchPan(Touch.position, pandistance, panspeed, touchState)

Description

This event is triggered when the user pans a finger on the touch device.

Parameters

Variable name Type Default Description
Touch.position Vector2 Coordinates of touch point
pandistance Vector3 Pan distance
panspeed float Pan speed (pixel/second)
UserInputState Enum.UserInputState Input type state

Examples

When the user pans a finger on the touch device, observe whether the event is printed or not

UserInputService.TouchPan:Connect(function() 
    print("The event that the user moves a finger on the touch device is triggered")
end)