Skip to content

fix(hook): bind the volume wheel listener to the control - #221

Open
mortebrume wants to merge 1 commit into
wimpysworld:mainfrom
mortebrume:push-uxzlzmvylnqo
Open

fix(hook): bind the volume wheel listener to the control#221
mortebrume wants to merge 1 commit into
wimpysworld:mainfrom
mortebrume:push-uxzlzmvylnqo

Conversation

@mortebrume

Copy link
Copy Markdown

On my Linux machine, scrolling lagged app-wide, because the volume wheel listener was associated to the window. This was making every tick waiting on the main thread.

The listener is now moved tot the volume control itself. Volume behaviour is unchanged.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 3 files

Auto-approved: Focused performance fix moves the non-passive wheel listener from window to the volume control, eliminating app-wide scroll lag; volume behavior is preserved and tests cover the new binding/rebinding logic.

Re-trigger cubic

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