Simplified the apply an orientation lock algo
Merge pull request #6 from w3c/apply_lock

Simplified the apply an orientation lock algo