as the title says
How to reproduce:
1-Go in creative mode
2-Get a sword
3-Hold the sword and hold the attack button
4-Move around while holding the attack button and looking at a block
edit: the video is laggy for some reason i may record another one
Thank you for your report!
We're actually already tracking this issue in MC-157436, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.