add panning when zoomed