How to pan the camera depending on the zoom

Hi, I can already both zoom and pan my camera around… However, I have no idea what speeds I should set for the camera panning… I want the speed to be depending on what zoom we have on our camera,
for example, if we have zoomed in maximum and want to pan around our camera the speed should be smaller so the camera won’t fly away to fast. when zoomed out the camera should move faster because then we can see more and the ground is further away. Many mobile games have succeeded with this, for example when u drag ur finger from left to right, the point where u touched first always stays under your finger, almost as if you were dragging the ground and not the camera. Does anyone have any idea of how I can accomplish something like this? maybe with a formula or something. EXTREMELY thankful for replies :slight_smile:

That kind of thigns are achieve making a X variable which is speed between to max/min constant and by percent being similar to your zoom. Example:

My zoom is 3, and here i want speed to be 1.
My max zoom is 7 and want here to have speed 6.

if my zoom is 5, the ecuation would be something like this: 5*(7-3)/(6-1)