clear timeout when changing state
don't set the gravityTimeout if changing state