What I expected to happen was...:
After closing inventory the direction you were facing should remain the same when it was opened
What actually happened was...:
The screen quickly snaps in the direction where cursor is
Steps to Reproduce:
1. Open inventory/chest/etc...
2. Move your cursor in one direction
3. Close the inventory while the cursor is moving
Duplicate of MC-155104