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:
Move around your camera, then open a GUI (Player Inventory, for example)
The cursor get centered
While still in the GUI, move your cursor, close the GUI (don't move your camera), the open it again
The cursor stays in the previous position
Expected results:
The cursor always get centered.
Observed results:
The cursor stays in the previous position.
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