Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cursor reset when opening an inventory #3159

Merged
merged 1 commit into from
Sep 13, 2020

Conversation

Yeregorix
Copy link
Member

Currently, opening an inventory while another is already open makes the mouse cursor reset his position to the center of the screen. This PR prevents sending a close packet when opening a new inventory (The only difference between closeScreen and closeContainer is the packet). Client-side, the user sees the new inventory opening and replacing the previous one as usual except that the cursor doesn't reset his position. This change allows plugins to easily create navigateable UIs using multiple inventories.

@Zidane Zidane merged commit 08c6448 into SpongePowered:stable-7 Sep 13, 2020
Faithcaio added a commit that referenced this pull request Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants