adjustment of determining the direction of movement
Merge branch 'master' into experimental-animation