[fix] continuous vertical rotation when y is out of margin