diff --git a/Cargo.lock b/Cargo.lock index 0d003beaef..c8914eb740 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10409,7 +10409,7 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winit" version = "0.30.13" -source = "git+https://github.com/storytold/winit.git?rev=a517b3846ee8457d84ee4975110bfda6797c44dc#a517b3846ee8457d84ee4975110bfda6797c44dc" +source = "git+https://github.com/storytold/winit.git?rev=0dfcec0eb62fda5904137a63a6dd0c3d83295f45#0dfcec0eb62fda5904137a63a6dd0c3d83295f45" dependencies = [ "ahash", "android-activity", diff --git a/Cargo.toml b/Cargo.toml index 264fa810a5..1d3566b672 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -202,7 +202,7 @@ egui_system_font_provider = { git = "https://github.com/storytold/egui.git", rev eframe = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } egui_demo_lib = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } egui_inspection = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } -winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" } +winit = { git = "https://github.com/storytold/winit.git", rev = "0dfcec0eb62fda5904137a63a6dd0c3d83295f45" } lopdf = { path = "vendor/lopdf" } vello_common = { path = "vendor/vello_common" } vello_cpu = { path = "vendor/vello_cpu" } diff --git a/docs/hardware-parity.md b/docs/hardware-parity.md index 455c7bcd78..11f88b498a 100644 --- a/docs/hardware-parity.md +++ b/docs/hardware-parity.md @@ -20,7 +20,7 @@ printing are counted in their feature areas). **Platforms ≈ 70% ready, 15–30 | Printers | all, PostScript, printer properties | CUPS via craft-print | Windows PDF raster spooler via craft-print (#756, PR #847) | CUPS via craft-print | the browser's print dialog (every printer the system knows): sheets drawn by PdfCraft at 150–300 dpi; copies, two-sided and colour set there | `crates/print/README.md`, `crates/ui-egui/src/workflows/web_print.rs` | | Scanners (TWAIN, WIA, ICA) | yes | none | none | none (SANE) | n/a | `ocr.scanner-acquire` planned | | Smart cards and USB tokens | yes (PKCS #11, CryptoTokenKit, CNG) | Keychain identities (software keys) | CNG store keys, with PIN prompts for cards (#742) | none (PKCS #11 planned) | none | `sign.pkcs11` planned | -| Pen and touch | Touch mode, pen ink, Windows Ink | trackpad pinch zoom; ink from pointer, no pressure | ink from pointer, no pressure or touch mode | as macOS | pointer | touchpad scrolling 1:1 (#759, PR #868) | +| Pen and touch | Touch mode, pen ink, Windows Ink | trackpad pinch zoom; ink from pointer, no pressure | ink from pointer, no pressure or touch mode | native Wayland trackpad pinch on compositors with pointer gestures; Ctrl+wheel still works on XWayland | pointer | touchpad scrolling 1:1 (#759, PR #868); [Wayland dependency and evidence](../vendor/README.md#window-stack-provenance-after-the-egui-037-migration) | | Keyboard input methods (IME) | yes | yes; Japanese and Korean IME fixes patched into winit | yes (Microsoft Korean cursor fix) | X11 and Wayland IME fixes | browser | `vendor/README.md` winit patches 2–10 | | Screen readers | VoiceOver, NVDA, JAWS | AccessKit labels (partial) | AccessKit (partial) | AccessKit (partial) | partial | `a11y.app-screen-reader` partial | | Text to speech (Read Out Loud) | yes | none | none | none | none | `a11y.read-aloud` planned | diff --git a/vendor/README.md b/vendor/README.md index 2901e5a6e1..71feee4fb7 100644 --- a/vendor/README.md +++ b/vendor/README.md @@ -19,12 +19,21 @@ Review upstream changes before replacing the snapshot and run the lifecycle and ## Window-stack provenance after the egui 0.37 migration The checked-in, resolved Cargo graph pins `winit` to storytold/winit -`a517b3846ee8457d84ee4975110bfda6797c44dc` and the egui crates to storytold/egui -`725a39fca940f77149ffbb9c58eef405a16997bc`. Neither `vendor/winit` nor +`0dfcec0eb62fda5904137a63a6dd0c3d83295f45` and the egui crates to storytold/egui +`f5025284445ea19c35f746d96fc0b75468b3f560`. Neither `vendor/winit` nor `vendor/egui-wgpu` is a root `[patch.crates-io]` path entry. The retained copies record the app's earlier patches; their source-reading tests establish provenance, while the resolved forks and their behavioral tests establish runtime behavior. +The maintained winit revision includes [the native Wayland pinch backport](https://github.com/storytold/winit/pull/20), +with rotation from [the companion contribution](https://github.com/storytold/winit/pull/21). +This lets PdfCraft's existing pointer-anchored zoom receive two-finger touchpad pinches on +Wayland compositors that offer the pointer-gestures protocol. It does not change canvas rotation +or touch the retained copies below. The fork's production gesture tests cover scale, phase +and rotation; the existing PdfCraft UI test covers pointer-anchored zoom. Physical GNOME +pinch evidence in [the original contribution](https://github.com/storytold/pdfcraft/pull/1580) +used the earlier pinch-only revision, not this exact resolved stack. + The retained winit copy has upstream base `e9809ef54b18499bb4f2cac945719ecc2a61061b`, as recorded in `vendor/winit/.cargo_vcs_info.json`. Its thirteen patch rows below match the fork's `PATCHES.md` entries W1–W13 commit for commit (W1 `b357a332`,