Horizontal pan

The vertical pan is implemented and working, the horizontal pan is acting very weirdly, would appreciate any input on this issue!!! Thank you!