panning works in 2d