Skip to content

fix(native): deliver onClick from primary mouse-up - #43

Merged
remorses merged 1 commit into
mainfrom
fix/embedded-primary-clicks
Sep 2, 2026
Merged

remorses merged 1 commit into
mainfrom
fix/embedded-primary-clicks

Conversation

@monotykamary

Copy link
Copy Markdown
Collaborator

Summary

  • deliver public onClick from primary-button mouse-up for retained hosts, motion hosts, standard native custom elements, and input/textarea
  • preserve middle/right mouse and aux behavior while guaranteeing onMouseUp runs before onClick
  • align click payloads and documentation, with focused native hit-testing regressions and a changeset

Validation

  • cargo fmt --manifest-path packages/native/Cargo.toml -- --check
  • cargo test --lib --features test-support,gpui_macos/runtime_shaders — 221 passed
  • native release/test-support N-API build with runtime shaders
  • bun run test in packages/react — 373 passed
  • bun run build in packages/react
  • bun run test in examples — 47 passed
  • bun run typecheck in example-app
  • Grok 4.6 final review — APPROVE

Fixes #41

@remorses
remorses merged commit 9b89506 into main Sep 2, 2026
7 checks passed
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.

Deliver onClick reliably from embedded macOS windows

2 participants