Use canonical Wayland trackpad pinch support in PDFCraft (#1580)

* M3: restore native Wayland pinch through the resolved winit fork

Refresh #1580 on current main, pin the tested companion winit port and keep vendor changes as provenance. Permit only the exact temporary fork revision until storytold/winit#20 is merged. Retain the egui scale regressions and document current validation limits.

* docs: record native pinch verification and keep roadmap quotes contiguous

Document current-head GNOME feedback and protocol evidence, retain untested compositor and teardown limits, and address the MD028 review finding without changing runtime code or dependency-origin policy.

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
This commit is contained in:
tomasmark79andFredApps authored and GitHub committed 2026-11-29 09:35:42 +01:00
1 parent 8a5468e6eb
commit d3c6bce447
4 files changed
+14 -5

No files matched your search

Generated
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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" }
+1 -1
View File
@@ -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 |
+11 -2
View File
@@ -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`,