mojira.dev
MCPE-165697

left mouse selects wrong item immediately after opening container/inventory

On Windows, when opening any container or the inventory, the mouse is temporarily and invisibly moved to the first slot of the container (to match the keyboard focus?). For the inventory menu, this is the head equipment slot. The mouse hovered name of the item in the first slot is displayed, but it is displayed somewhere else, at the "real" location of the cursor (where it is drawn by Windows.)

This means that regardless of the location of the mouse shown on screen, a left click immediately after opening a container on inventory screen will pick up the item in the first slot of the inventory.

This behavior is fine for keyboard focus: the focused slot can be moved with the arrow keys. But it should not affect the mouse's left-click behavior. One pixel of mouse movement will reset the cursor back to it's "real" location, as drawn by Windows, and clicking works normally again.

I can't tell you how many times I have mistakenly pulled stuff out of chests accidentally in 1.19.51, just be clicking through a line of chests to see the contents.

 

 

Linked issues

Attachments

Comments 1

Arisa Bot

Thank you for your report!
We're tracking this issue in MCPE-164754, so this ticket is being resolved and linked 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 to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

HavocUnit

(Unassigned)

Unconfirmed

Windows

Windows 11

1.19.51

Retrieved