Top Down Mouse click & drag to Pan - keep sensitivity consistent when zooming in or out

I have click and drag mouse panning however I want to have it work similar to the UE blueprints interface.
This demonstrates what I have and what I want to achieve: Top Down: Click and Drag Mouse Panning Issue - YouTube

This is currently the code I have at the moment:

Any help would be super appreciated!