Pan behaves correctly on resize, zoom