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 options menu scrolling incorrectly when there is no cursor on the menu and scrolling keys are being pressed. #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Bitl
Copy link
Contributor

@Bitl Bitl commented Jul 10, 2024

I noticed recently that after implementing commit 53869ad into my project, that the options menu exhibits the following behavior:

  • If you remove your cursor from the menu and press the up or down arrows or controller buttons, it will scroll down to a certain point and reset itself.

I noticed that it doesn't do this in Portal or any other Valve games that use gamepadui, so I whipped up a patch that does the following:

  1. when the mouse is hovering over the panel, it will enable the current solution and prevent the menu from scrolling incorrectly with the mouse.
  2. when the mouse is NOT hovering over the panel, it will enable the original code from the initial commit of this repo (the code shipped with Portal and HL2's GamepadUI)

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.

1 participant