Orthographic camera movement using mouse for RTS game

Hi,

I am very new to unity as well as 3D programming. I am trying to move the camera using mouse but the movement is not perfect . I guess i am doing some calculation mistakes but not able to figure it out. My Script :

        if (Input.GetMouseButtonDown(0))
        {
            mouseDownPoint =Input.mousePosition;
        }


        if (Input.GetMouseButtonUp(0))
        {
            mouseDownPoint = Vector3.zero ;
        }


        if (!mouseDownPoint.Equals(Vector3.zero))
        {
            Vector3 diff = mouseDownPoint - Input.mousePosition;
            Camera.mainCamera.transform.Translate(diff);
            mouseDownPoint = Input.mousePosition;
            return;
        }

that really doesn’t tell us anything… how is it working? how do you want it to work? describe the actual problem you are getting…

The panning is too fast , I can multiply diff variable to a factory to make the movement slower but this factor is not consistent and it depends on the orthographicSize of the camera ,

This is the demo with the problem

https://dl.dropboxusercontent.com/u/64306446/Unity/City%20Builder/Unity/Unity.html

I just want my camera to move with the same speed as my mouse cursor , With the above implementation camera moves at a higher speed than the mouse