make the arrow transform in the same side

otherwise it will rotate very strange.
Merge pull request #1 from croath/master

make the arrow transform in the same side while pan changing.