Drag Camera both in horizontal and vertical axis

Hello everybody,

when I apply this script to the cam, it works nice, but in horizontal (X) and depth (Y? Z?) direction. What I want is to move the cam just in 2D, meaning X and vertical (usually Y) direction. Any thoughts? Thank you so much in advance!

Vector3 move = new Vector3(pos.x * dragSpeed, 0, pos.y * dragSpeed);

Never mind, newbie question: the right way to script it was:

Vector3 move = new Vector3(pos.x * dragSpeed, pos.y * dragSpeed, 0);