Cannot pan with wheelbutton

I cannot get my Logitech M510 wheelmouse to pan with wheel button. Anybody with a working pan, please suggest some settings?