native icon indicating copy to clipboard operation
native copied to clipboard

feat(Multi-touch Gestures): Add GPU surface magnify input gesture support

Open jhodges10 opened this issue 4 months ago • 1 comments

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.

jhodges10 avatar Jul 11 '26 21:07 jhodges10

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

A member of the Team first needs to authorize it.

vercel[bot] avatar Jul 11 '26 21:07 vercel[bot]

@jhodges10 Great catch! I fixed this and a few other issues in #141 and added you as a co-author

ctate avatar Jul 17 '26 18:07 ctate