android – Unity Touch Pan Spell Camera

I wrote code to pan in a perspective view. I've used this code and modified it to make it work in orthographic view. However, the display does not pan as expected. He's just going everywhere. Below my code:

// check if there is a detected key.
if (Input.touchCount> 0 && Input.GetTouch (0) .phase == TouchPhase.Moved)
Vector2 touchDeltaPosition = Input.GetTouch (0) .deltaPosition;
transform.Translate (-touchDeltaPosition.x * panSpeed, transform.position.y * panSpeed, 0);

// Set the limits of the pan range.
transform.position = new Vector3 (
Mathf.Clamp (transform.position.x, -14f, -39f),
Mathf.Clamp (transform.position.y, 29f, 63f),
Mathf.Clamp (transform.position.z, -72f, 20f));