Skip to content

Conversation

rfresh2
Copy link
Contributor

@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