Skip to content

perf: make propertyPanelColor scroll listener passive - #3296

Open
Jakemcanelly wants to merge 1 commit into
heygen-com:mainfrom
Jakemcanelly:perf/passive-scroll-listener
Open

perf: make propertyPanelColor scroll listener passive#3296
Jakemcanelly wants to merge 1 commit into
heygen-com:mainfrom
Jakemcanelly:perf/passive-scroll-listener

Conversation

@Jakemcanelly

Copy link
Copy Markdown

The third argument was true (capture only), so the browser blocks on this handler during scroll. The handler only repositions the panel — never calls preventDefault — so { capture: true, passive: true } is safe and removes the scroll-blocking wait.

The third argument was `true` (capture only), so the browser blocked on
this handler during scroll. Now { capture: true, passive: true }.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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