Use Mouse to Control Panning Direction