Add pan mode in 2d editor