CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

Fix middle-click: use auxclick event instead of mousedown #4024

Merged⚡ AI-generatedXSccantynz wants to mergeclaude/typing-practice-app-0CvXPmainopened Mar 25, 2026
ccantynzcommented Mar 25, 2026

Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/48co.v1/pull/13


The previous approach used mousedown + wheel-time guard, but pressing the wheel button physically also triggers a wheel event on most mice, which blocked the click entirely.

auxclick only fires on a complete press+release of a non-primary button and NEVER fires from scrolling — this is exactly what we need.

https://claude.ai/code/session_01PBeNmPHrD2W6A2YKZRC7V3

ccantynzcommented Mar 25, 2026

Originally written by @vercel[bot] on GitHub.


The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
48co-ai-pa Ready Ready Preview, Comment Mar 25, 2026 6:09am

Request Review

Cross-repo impact

See what breaks downstream if this PR merges.

Analyze →
⮌ Merged

This pull request was merged into main.

c comment · e edit title · m merge · a approve · r request changes · ? shortcuts