Adding double click zoom/pan and smooth panning.