Fix the background-position reset bug
This commit fixes an issue that causes the background image
position to reset along the panned axis before animation begins.