mojira.dev
MCPE-227946

Cursor does not get centered in the GUI if the camera isn't moved prior to opening the GUI

In the latest Preview GDK build, If you open a GUI after moving the camera around, the cursor will be centered, but if you move the cursor, then close the GUI and didn't move your camera around, when opening the GUI the cursor does not get centered, in Java Edition the cursor will always be centered even if you didn’t move your camera prior to opening the GUI.

Steps to reproduce:

  1. Move around your camera, then open a GUI (Player Inventory, for example)

  2. The cursor get centered

  3. While still in the GUI, move your cursor, close the GUI (don't move your camera), the open it again

  4. The cursor stays in the previous position

Expected results:
The cursor always get centered.

Observed results:
The cursor stays in the previous position.

Linked issues

Attachments

Comments 1

Hi!
Thank you for your report! 

We're already tracking this issue at MCPE-227904, so I will resolve and link this ticket as a Duplicate. 

I suggest also to browse through the main issue for potential fixes. 

If you would like to add a vote and any extra information to the main ticket it would be appreciated. 

Quick Links
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki 

KejuGorenk

(Unassigned)

Plausible

Windows

GDK

1.21.120.21 Preview

Retrieved