Improvement in detecting onRotationFinished event