implement panning with middle mouse button
rename vertRuler and horizRuler to vRuler and hRuler