fixed auto-rotate bug, and added the mouse hover event