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 unfocused clickgui issue #417

Merged
merged 1 commit into from
Nov 21, 2022
Merged

Conversation

rfresh2
Copy link
Member

@rfresh2 rfresh2 commented Nov 21, 2022

Describe the pull
to reproduce issue without this commit:

  1. clickgui -> hudeditor gui
  2. close clickgui
  3. open clickgui

Describe how this pull is helpful
Issue caused by mouse getting stuck in the DRAG state even when no button was being clicked.
handleMouseInput in GuiScreen never resets this variable until it gets a new mouse click, causing gui's to get a stale mouse button value until the next click

Additional context
trolled by MC's GuiScreen
didn't find any other way to reset this private variable without an accessor unfortunately.
another option would be to mixin and reset this var in GuiScreen.onGuiClosed but not sure if there's other gui's that depend on this existing behavior.

@Avanatiker Avanatiker merged commit c073a8f into lambda-client:master Nov 21, 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