The bug
When standing in a corner and trying to move against a block, the camera shifts in a weird and unnatural way. Only the camera is affected, as the selected block does not change.
To reproduce
Enable View Bobbing
Build a corner
Move into the corner
Move against a block
→ ❌ The camera shifts
Videos
Linked issues
is duplicated by 9
relates to 3
Attachments
Comments 21
According to MC-166806 this only happens with view bobbing enabled
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w05a.

for some reason, i can't confirm... i can confirm shifting and trying to fall off a block though...
opinion: i would not like this removed, i would like this to be altered/fixed in a way that makes sense... so if you are trying to go to the wall (or fall off a block while shifting), the camera will correctly move towards the way you want, not just somewhere
It appears as if the behavior has changed slightly, but I'm still able to reproduce this in 22w17a by sneaking on the edge of a block whilst trying to move off it.
[media]Can confirm in 1.19.
Can confirm in 1.19.2.
@unknown, the problem of the camera shifting while sneaking on the edge represents a distinct issue. This report concerns the problem encountered when interacting with actual blocks, which is a specific issue introduced in 1.14. The behavior you describe existed prior to 1.14 and might have been intentional. I propose marking this report as resolved and creating a new report for the sneaking issue.
This also happens when sneaking while on an edge, and trying to move off the edge. Seems like this might happen every time when the player tries to move, but can't?