gallery/harnesses
Greg Pomerantz ba646fb233 gtauri viewer: adopt incoming dimensions at swipe commit (aspect fix)
Settling on a different-aspect neighbor (e.g. landscape → portrait)
stretched: vimg kept the OLD image's width/height styles while showing
the new thumbnail, so the new pixels rendered in the old box until
full-res landed and fitViewer() reset the dimensions — a visible
vertical stretch then snap-back.

At the commit swap, adopt the incoming image's dimensions from the
drag preview (nav already knows w/h/scale from its loaded thumb):
base/vScale/width/height/transform are all set consistently in the
same task as the src swap, so the first settled frame is correct.
Fallback: if the preview never loaded (keyboard nav / slow thumb),
use the plain openViewer path where the thumb round-trip sets the
dimensions before first paint.

Verified on the emulator with a 4:3 landscape + 3:4 portrait pair:
settled content box 1439x1921 (0.749 = exact 3:4) from the first
settled frame, unchanged after the full-res swap.
2026-11-03 13:15:55 -05:00
..
egtest harness: sync egtest spin-driver build 2026-10-31 06:18:42 -04:00
gtauri gtauri viewer: adopt incoming dimensions at swipe commit (aspect fix) 2026-11-03 13:15:55 -05:00
ttimg gtauri: pure-push watching only; one emit per burst; live swipe preview 2026-11-03 12:49:30 -05:00
tttest harness: tttest — Tauri 2 / WebView scroll-jank testbed (third stack) 2026-10-31 13:53:43 -04:00