I've had same problem. Here is my setup
Pan while driving = OFF
Pan while aiming = ON
Zoom levels = 50% to 250%
Assign key to pan = ' (back accent) or anything else worked
Worked with any occasion, stationary, window open or not, aiming outside the vehicle, etc.
Display: Windowed (1080p)
CPU: AMD Ryzen 5 2600
GPU: GTX 1050 TI OC
OS: WIN 10 Pro
RAM: 16GB