Steps to reproduce the issue: When the sprint key is set to any mouse button (main or extra buttons) and is set to toggle, the sprint resets after opening the inventory, chest and other interactions (and also pausing the game). This does not happens with any keyboard keys.
Expected behavior: Pressing the mouse button (set to sprint) once (to sprint) should make the player stay sprinting after interacting with the inventory, chest and others.
Actual behavior: Pressing the mouse button (set to sprint) once (to sprint) does not make the player stay sprinting after interacting with the inventory, chest and others, which forces the player to click the sprint button constantly (after interacting) in order to sprint.
Environment
Any hardware/java, in versions 1.21.9 and 1.21.10
Thank you for your report!
We're tracking this issue in MC-301281, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki