wait for ios orientation to finish (fix #1074)