Skip to content

Add GPU surface magnify input#112

Draft
jhodges10 wants to merge 1 commit into
vercel-labs:mainfrom
jhodges10:agent/gpu-surface-magnify-input
Draft

Add GPU surface magnify input#112
jhodges10 wants to merge 1 commit into
vercel-labs:mainfrom
jhodges10:agent/gpu-surface-magnify-input

Conversation

@jhodges10

Copy link
Copy Markdown

What changed

  • adds GpuSurfaceInputKind.magnify at ABI ordinal 12 without renumbering existing input kinds
  • forwards AppKit magnifyWithEvent: with cursor-local coordinates and incremental magnification in delta_y
  • keeps widget pointer/keyboard routing exhaustive and adds platform mapping tests
  • documents the macOS GPU-surface input contract

Why

Native-rendered timeline and canvas applications need first-class trackpad pinch input. Previously AppKit received magnify gestures but the Native SDK GPU-surface event API dropped them before applications could respond.

Validation

  • zig build test
  • zig build validate
  • zig build test-appkit-gpu-magnify-input
  • frontend, native, and mobile example suites
  • benchmark gate
  • docs typecheck and production build with pnpm 10.23.0
  • zig fmt --check
  • git diff --check

The optional CEF host compile was skipped because the local CEF runtime is not installed; this change is confined to the system AppKit host.

@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

@jhodges10 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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