A very obscure combo, but it happens. Third person does not seem to be affected.
Refer to the attached video - first half is without holding right click, second half is with it held down. The same command is being executed, yet the results we see are fundamentally different.
Thank you for helping us improve Minecraft! We saved your files: