Skip to content

Fix: Dropdown menu overlayed in Inference UI Model Cards not being scrollable on Linux.#1566

Merged
ionite34 merged 5 commits intoLykosAI:mainfrom
NeuralFault:upscaler-scroll-fix
Mar 8, 2026
Merged

Fix: Dropdown menu overlayed in Inference UI Model Cards not being scrollable on Linux.#1566
ionite34 merged 5 commits intoLykosAI:mainfrom
NeuralFault:upscaler-scroll-fix

Conversation

@NeuralFault
Copy link
Copy Markdown
Contributor

On Linux, FAComboBox popups are rendered as overlay popups that share the same TopLevel visual root as the main window.

FAComboBox.OnPopupOpened adds a TopLevel tunnel handler that marks ALL pointer-wheel events as handled (when dropdown is open and source.VisualRoot == TopLevel) to prevent parent ScrollViewers from stealing the event. The side-effect is that the popup's own internal ScrollViewer also never receives the event. Causing the dropdown in the Model cards in the Inference UI (HiResFix, Upscaler, etc) to not be able to scroll with the mousewheel, leaving the user to have to click and drag the scroll bar.

Fix: Add a tunnel handler directly on the popup ScrollViewer, which runs after the TopLevel handler in tunnel order, that resets e.Handled = false, allowing the ScrollViewer's normal bubble handler to process the scroll and move the dropdown list.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request resolves a user experience issue on Linux where dropdown menus within the Inference UI's Model Cards were not scrollable via mouse wheel. The fix involves adjusting how pointer wheel events are handled within FAComboBox popups to ensure that internal ScrollViewer components can correctly respond to scroll input.

Highlights

  • Linux Dropdown Scrolling Fix: Addressed an issue where FAComboBox popups on Linux prevented mouse wheel scrolling in the Inference UI Model Cards by incorrectly handling PointerWheelChangedEvent at the TopLevel.
  • Event Handling Adjustment: Implemented a tunnel handler directly on the popup's ScrollViewer to reset e.Handled = false for PointerWheelChangedEvent, allowing the ScrollViewer to process scroll events correctly.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Activity
  • No specific activity (comments, reviews, progress) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request fixes an issue where dropdown menus in model cards were not scrollable on Linux. The fix involves adding a tunnel event handler to the popup's ScrollViewer to reset the Handled property of pointer wheel events, allowing them to be processed correctly. The implementation is sound and directly addresses the described problem. I've added one suggestion to improve robustness against potential memory leaks and reduce code duplication.

Copy link
Copy Markdown
Member

@ionite34 ionite34 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the PR. Since this seems to be Linux only, maybe we can add a Compat.IsLinux condition for attaching the event handlers? And perhaps adding a comment linking the issue. Since it might not be clear in the future what this handler is for.

@NeuralFault
Copy link
Copy Markdown
Contributor Author

done.

Compat.IsUnix as this affects MacOS also.

@ionite34 ionite34 merged commit 58ec939 into LykosAI:main Mar 8, 2026
3 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2026
@NeuralFault NeuralFault deleted the upscaler-scroll-fix branch March 8, 2026 23:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants