mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-09 15:27:02 +00:00
On macOS the canvas paints tool cursor glyphs into the frame, so they trail the pointer by a frame or more (#2292). This interim adapter delivers the same glyphs as native NSCursors, which AppKit moves independently of canvas redraws. ui-egui prepares cached 1x/2x RGBA requests from the existing cursor rasterizer and hotspots (transparent padding only) and keeps returning a visible system fallback icon. The desktop host builds NSImage/NSCursor objects with point-sized images and hotspots, owns cursor-rectangle suspension and restoration, and hands the cursor back on menu tracking, focus loss, empty passes, cursor overrides and shutdown. Windows/X11, Wayland and web delivery are unchanged. No artwork, no production unsafe, no new dependency package: only four AppKit features are enabled on the already-shipped objc2-app-kit. Remove once the pinned winit sizes macOS cursor images and hotspots in points. Addresses #2292.