new option autorotateDelayMillis to start auto-rotate only after some time of user inactivity
add missing break statements