Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Zoom tool: holding the button zooms continuously with Animated Zoom on (#6210)

David Mann7f0e7cbee0e4
diff --git a/crates/engine/src/prefs.rs b/crates/engine/src/prefs.rs
index c732daeef..51901841a 100644
--- a/crates/engine/src/prefs.rs
+++ b/crates/engine/src/prefs.rs
@@ -1010,7 +1010,6 @@ pub const SECTIONS: [(&str, &str); 18] = [
/// preference is read anywhere outside `prefs.rs`, and while an unlisted one is read nowhere.
pub const HIDDEN_UNTIL_IMPLEMENTED: &[&str] = &[
"general.colorPicker",
- "general.animatedZoom",
"general.zoomResizesWindows",
"workspace.autoShowHiddenPanels",
"workspace.enableFloatingDocumentWindowDocking",
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs
index 391ad464f..f115c733e 100644
--- a/crates/ui-egui/src/canvas.rs
+++ b/crates/ui-egui/src/canvas.rs
@@ -3523,6 +3523,14 @@ pub fn canvas_view(app: &mut PhotocraftApp, ui: &mut egui::Ui, idx: usize, rect:
if tool == Tool::RotateView && !over_compass && crate::rotate_view::drag(&ctx, &mut view, &xf, &buttons, response.interact_pointer_pos()) {
(buttons.started, buttons.dragged, buttons.stopped, buttons.clicked) = (false, false, false, false);
}
+ // Animated Zoom: a Zoom press held still zooms continuously (zoom_hold.rs); while it does,
+ // it owns the press: no scrub, and its release is no click step.
+ if tool == Tool::Zoom && !transform_owns_pointer {
+ let out = zoom_out(ui.input(|i| i.modifiers.alt));
+ if crate::zoom_hold::update(&ctx, &mut view, &xf, app.session.prefs().general.animated_zoom, out, ppp) {
+ (buttons.started, buttons.dragged, buttons.stopped, buttons.clicked) = (false, false, false, false);
+ }
+ }
// Zoom tool drags: scrubby zoom or a zoom rectangle (zoom_tool.rs); clicks step below.
// Like the Hand, the selected Zoom yields to an open Free Transform box (#4799).
if tool == Tool::Zoom && !transform_owns_pointer && crate::zoom_tool::drag(app, &ctx, &mut view, &xf, &buttons, response.interact_pointer_pos()) {
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs
index 5d95f2d66..cdff3ee65 100644
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@ -234,6 +234,7 @@ pub mod wide_angle_ui;
pub mod widgets;
pub mod work_area;
pub mod workspace_ui;
+pub mod zoom_hold;
pub mod zoom_levels;
pub mod zoom_tool;
diff --git a/crates/ui-egui/src/prefs_ui.rs b/crates/ui-egui/src/prefs_ui.rs
index d19480302..05bc0760f 100644
--- a/crates/ui-egui/src/prefs_ui.rs
+++ b/crates/ui-egui/src/prefs_ui.rs
@@ -3368,6 +3368,7 @@ mod tests {
assert!(!prefs::is_hidden("rawDefaults.openInCameraRaw"));
assert!(prefs::is_hidden("rawDefaults.applyAutoTone"));
assert!(!prefs::is_hidden("general.autoShowHomeScreen"));
+ assert!(!prefs::is_hidden("general.animatedZoom"));
assert!(!prefs::is_hidden("interface.uiScale"));
assert!(!prefs::is_hidden("interface.uiFontSize"));
// Hidden values still round-trip through the dialog untouched.
diff --git a/crates/ui-egui/src/zoom_hold.rs b/crates/ui-egui/src/zoom_hold.rs
new file mode 100644
index 000000000..673ccf6a6
--- /dev/null
+++ b/crates/ui-egui/src/zoom_hold.rs
@@ -0,0 +1,264 @@
+//! Animated Zoom: press and hold with the Zoom tool to zoom continuously (#6210).
+//!
+//! With Preferences › General › Animated Zoom on (the default, as in Photoshop) a press held
+//! still past [`DELAY`] zooms in smoothly about the press point until the button comes up, or out
+//! with ⌥. The release is then no click step. A quick click still steps the zoom (the canvas), a
+//! drag still scrubs or draws a zoom rectangle (`zoom_tool.rs`), and with the preference off a
+//! hold does nothing more than a click.
+//!
+//! The rate is per second of wall time, so the zoom grows the same at any frame rate.
+
+use egui::Pos2;
+
+use crate::canvas::ViewXform;
+use crate::state::View;
+
+/// Seconds a press must be held still before it zooms continuously (a click is shorter).
+pub const DELAY: f64 = 0.3;
+/// Doublings (or halvings, zooming out) per second while held.
+pub const RATE: f32 = 2.0;
+/// Screen points the pointer may wander before the press counts as a drag instead.
+const SLOP: f32 = 6.0;
+/// The longest frame gap a hold zooms over: a stalled frame never jumps the zoom far.
+const MAX_DT: f64 = 0.25;
+
+/// A Zoom-tool press being held.
+#[derive(Clone, Copy, Debug, PartialEq)]
+struct Hold {
+ /// Screen point where the button went down.
+ anchor: Pos2,
+ /// The document point under it (it stays under the anchor).
+ doc: [f64; 2],
+ /// When the button went down (egui seconds).
+ t0: f64,
+ /// The time the zoom last advanced to, once zooming.
+ last: Option<f64>,
+ /// The pointer moved before the hold began: this press is a drag, never a hold.
+ dragged: bool,
+}
+
+fn id() -> egui::Id {
+ egui::Id::new("pc-zoom-tool-hold")
+}
+
+/// The zoom after holding for `dt` seconds at `zoom` (out: shrinking), within the range for a
+/// document of `size` px. A non-finite or negative `dt` changes nothing.
+pub fn hold_zoom(zoom: f32, dt: f64, out: bool, size: [u32; 2]) -> f32 {
+ let dt = if dt.is_finite() { dt.clamp(0.0, MAX_DT) as f32 } else { 0.0 };
+ let e = if out { -RATE * dt } else { RATE * dt };
+ crate::zoom_levels::clamp(zoom * e.exp2(), size)
+}
+
+/// Is a held press zooming right now? (It owns the gesture: no scrub, no click step.)
+pub fn active(ctx: &egui::Context) -> bool {
+ ctx.data(|d| d.get_temp::<Hold>(id())).is_some_and(|h| h.last.is_some())
+}
+
+/// Advance a Zoom-tool hold by one frame. `enabled` is the Animated Zoom preference, `out` the
+/// zoom direction (⌥ or a temporary zoom-out key, read live). Returns true when the press is a
+/// hold zoom (on its release frame too), so the canvas skips the scrub and the click step.
+pub fn update(ctx: &egui::Context, view: &mut View, xf: &ViewXform, enabled: bool, out: bool, ppp: f32) -> bool {
+ let (down, origin, start, pos, now) =
+ ctx.input(|i| (i.pointer.primary_down(), i.pointer.press_origin(), i.pointer.press_start_time(), i.pointer.latest_pos(), i.time));
+ let held = ctx.data(|d| d.get_temp::<Hold>(id()));
+ if !enabled || !down {
+ if held.is_some() {
+ ctx.data_mut(|d| d.remove::<Hold>(id()));
+ }
+ return enabled && held.is_some_and(|h| h.last.is_some());
+ }
+ let mut h = match held {
+ Some(h) => h,
+ None => {
+ // A press that began on the canvas (not one dragged in from a panel).
+ let Some(anchor) = origin.filter(|p| xf.rect.contains(*p)) else { return false };
+ let t0 = start.filter(|t| t.is_finite()).unwrap_or(now);
+ let h = Hold { anchor, doc: xf.to_doc(anchor), t0, last: None, dragged: false };
+ ctx.data_mut(|d| d.insert_temp(id(), h));
+ h
+ }
+ };
+ if h.dragged {
+ return false;
+ }
+ if h.last.is_none() {
+ // Moved before the hold began: a drag (scrubby zoom or rectangle), not a hold.
+ if pos.is_some_and(|p| p.distance(h.anchor) > SLOP) {
+ h.dragged = true;
+ ctx.data_mut(|d| d.insert_temp(id(), h));
+ return false;
+ }
+ let begin = h.t0 + DELAY;
+ if now < begin {
+ ctx.request_repaint_after(std::time::Duration::from_secs_f64((begin - now).clamp(0.0, DELAY)));
+ return false;
+ }
+ h.last = Some(begin);
+ }
+ let dt = now - h.last.unwrap_or(now);
+ let zoom = hold_zoom(view.zoom, dt, out, view.doc_size);
+ crate::zoom_tool::anchor_view(view, xf, h.anchor, h.doc, zoom, ppp);
+ h.last = Some(now);
+ ctx.data_mut(|d| d.insert_temp(id(), h));
+ ctx.request_repaint();
+ true
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use crate::PhotocraftApp;
+ use egui::{Event, PointerButton, vec2};
+ use egui_kittest::Harness;
+ use serde_json::json;
+
+ const DOC: [u32; 2] = [400, 300];
+
+ #[test]
+ fn hold_zoom_is_frame_rate_independent_and_safe() {
+ // One second in one step or in 60 steps: two doublings either way.
+ let mut z = 1.0;
+ for _ in 0..60 {
+ z = hold_zoom(z, 1.0 / 60.0, false, DOC);
+ }
+ let big = hold_zoom(hold_zoom(hold_zoom(hold_zoom(1.0, 0.25, false, DOC), 0.25, false, DOC), 0.25, false, DOC), 0.25, false, DOC);
+ assert!((z - 4.0).abs() < 1e-3 && (big - 4.0).abs() < 1e-3, "{z} {big}");
+ assert!((hold_zoom(1.0, 0.25, true, DOC) - 2f32.powf(-0.5)).abs() < 1e-5);
+ // Nothing for no time, a negative or broken dt, or a non-finite zoom (100 %).
+ assert_eq!(hold_zoom(1.5, 0.0, false, DOC), 1.5);
+ assert_eq!(hold_zoom(1.5, -3.0, false, DOC), 1.5);
+ assert_eq!(hold_zoom(1.5, f64::NAN, true, DOC), 1.5);
+ assert_eq!(hold_zoom(1.5, f64::INFINITY, true, DOC), 1.5);
+ assert_eq!(hold_zoom(f32::NAN, 0.1, false, DOC), 1.0);
+ // A stall is capped; the range is kept.
+ assert!((hold_zoom(1.0, 10.0, false, DOC) - 2f32.powf(0.5)).abs() < 1e-5);
+ assert_eq!(hold_zoom(crate::zoom_levels::MAX, 0.2, false, DOC), crate::zoom_levels::MAX);
+ let min = crate::zoom_levels::min(DOC);
+ assert_eq!(hold_zoom(min, 0.2, true, DOC), min);
+ assert_eq!(hold_zoom(1.0, 0.1, false, [0, 0]), hold_zoom(1.0, 0.1, false, [0, 0]));
+ }
+
+ fn harness(animated: bool) -> Harness<'static, PhotocraftApp> {
+ let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default());
+ app.run("file.new", json!({"width": 400, "height": 300})).unwrap();
+ app.run("prefs.set", json!({"values": {"general.animatedZoom": animated, "tools.zoomClickedPointToCenter": false}})).unwrap();
+ app.sync_views();
+ app.ui.extras.rulers = false;
+ app.ui.tool = crate::state::Tool::Zoom;
+ app.ui.tool_options.zoom_scrubby = true;
+ // Each step is 0.1 s of egui time.
+ let mut h = Harness::builder().with_size(vec2(1000.0, 700.0)).with_step_dt(0.1).build_ui_state(
+ |ui, app: &mut PhotocraftApp| {
+ if !ui.ctx().fonts(|f| f.families().contains(&egui::FontFamily::Name("medium".into()))) {
+ return;
+ }
+ egui::CentralPanel::default().show(ui, |ui| crate::canvas::document_area(app, ui));
+ },
+ app,
+ );
+ PhotocraftApp::setup_context(&h.ctx, crate::theme::ThemeKind::ALL[0]);
+ h.run_steps(4);
+ let view = &mut h.state_mut().ui.views[0];
+ view.zoom = 1.0;
+ view.center = [200.0, 150.0];
+ view.fit_pending = false;
+ view.fill_pending = false;
+ h.run_steps(2);
+ h
+ }
+
+ fn xf(h: &Harness<'static, PhotocraftApp>) -> ViewXform {
+ ViewXform::active(h.state()).unwrap()
+ }
+
+ fn button(h: &mut Harness<'static, PhotocraftApp>, p: Pos2, pressed: bool, alt: bool) {
+ let modifiers = egui::Modifiers { alt, ..Default::default() };
+ h.event(Event::ModifiersChanged(modifiers));
+ h.event(Event::PointerButton { pos: p, button: PointerButton::Primary, pressed, modifiers });
+ h.step();
+ }
+
+ /// Press at `p`, hold still for `frames` steps, release; returns the zoom after every step,
+ /// then after the release step and two more frames.
+ fn hold(h: &mut Harness<'static, PhotocraftApp>, p: Pos2, frames: usize, alt: bool) -> Vec<f32> {
+ h.event(Event::PointerMoved(p));
+ h.step();
+ button(h, p, true, alt);
+ let mut zs = vec![h.state().current_zoom()];
+ for _ in 0..frames {
+ h.step();
+ zs.push(h.state().current_zoom());
+ }
+ button(h, p, false, alt);
+ zs.push(h.state().current_zoom());
+ h.run_steps(2);
+ zs.push(h.state().current_zoom());
+ zs
+ }
+
+ #[test]
+ fn holding_zooms_in_continuously_about_the_press_point() {
+ let mut h = harness(true);
+ let p = h.state().last_canvas_rect.center() + vec2(-120.0, 70.0);
+ let doc = xf(&h).to_doc(p);
+ let zs = hold(&mut h, p, 8, false);
+ // Nothing during the delay, then more every frame; the release adds no click step.
+ assert_eq!(zs[0], 1.0, "{zs:?}");
+ let rising = &zs[4..=8];
+ assert!(rising.windows(2).all(|w| w[1] > w[0]), "{zs:?}");
+ // The release frame ends it: no click step, nothing more afterwards.
+ assert_eq!(zs[10], zs[9], "{zs:?}");
+ assert!(zs[9] < zs[8] * 1.2, "{zs:?}");
+ // About 0.5 s held past the delay at RATE doublings per second.
+ let expected = (RATE * 0.5).exp2();
+ assert!((zs[8] - expected).abs() < 0.2, "{zs:?} vs {expected}");
+ assert!(xf(&h).to_screen(doc[0] as f32, doc[1] as f32).distance(p) < 0.5);
+ assert_eq!(h.state().session.documents()[0].history.past_len(), 0);
+ }
+
+ #[test]
+ fn alt_hold_zooms_out() {
+ let mut h = harness(true);
+ let p = h.state().last_canvas_rect.center() + vec2(50.0, -30.0);
+ let doc = xf(&h).to_doc(p);
+ let zs = hold(&mut h, p, 8, true);
+ assert!(zs[4..=8].windows(2).all(|w| w[1] < w[0]), "{zs:?}");
+ assert_eq!(zs[10], zs[9], "{zs:?}");
+ assert!(zs[9] > zs[8] / 1.2, "{zs:?}");
+ assert!(xf(&h).to_screen(doc[0] as f32, doc[1] as f32).distance(p) < 0.5);
+ }
+
+ #[test]
+ fn with_animated_zoom_off_a_hold_is_one_click_step() {
+ let mut h = harness(false);
+ let p = h.state().last_canvas_rect.center();
+ // Shorter than egui's longest click, so the release is a click.
+ let zs = hold(&mut h, p, 5, false);
+ assert!(zs[..=5].iter().all(|&z| z == 1.0), "{zs:?}");
+ assert_eq!(*zs.last().unwrap(), crate::zoom_levels::step(1.0, 1, DOC));
+ }
+
+ #[test]
+ fn a_quick_click_steps_and_a_drag_still_scrubs() {
+ let mut h = harness(true);
+ let p = h.state().last_canvas_rect.center();
+ let zs = hold(&mut h, p, 0, false);
+ assert_eq!(*zs.last().unwrap(), crate::zoom_levels::step(1.0, 1, DOC), "{zs:?}");
+ // Scrubby Zoom: a drag zooms by its distance however long it is held, never by time.
+ let z0 = h.state().current_zoom();
+ h.event(Event::PointerMoved(p));
+ h.step();
+ button(&mut h, p, true, false);
+ h.event(Event::PointerMoved(p + vec2(50.0, 0.0)));
+ h.step();
+ for _ in 0..6 {
+ h.step();
+ }
+ let expected = crate::zoom_tool::scrub_zoom(z0, 50.0, DOC);
+ assert!((h.state().current_zoom() - expected).abs() < 1e-4, "{} vs {expected}", h.state().current_zoom());
+ button(&mut h, p + vec2(50.0, 0.0), false, false);
+ h.run_steps(2);
+ assert!((h.state().current_zoom() - expected).abs() < 1e-4);
+ assert!(!active(&h.ctx));
+ }
+}
diff --git a/docs/gaps.md b/docs/gaps.md
index faf0884c8..04c0d2b79 100644
--- a/docs/gaps.md
+++ b/docs/gaps.md
@@ -1,6 +1,6 @@
# Where PhotoCraft falls short of Photoshop
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-13 · **Change:** minor (G1: smart filter masks show on PSD open, Photoshop-oracle floor 188/258; G10: DPX read and write, #1049, Cineon read; G1: CMYK Hue/Saturation and Color Balance keep the black ink; G1: CMYK Posterize on the stored values, psd-tools oracle floor 242/309; G1: CMYK adjustment layers composite on the document's inks, Photoshop-oracle floor 165/258; G1: CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; G1: modern Brightness/Contrast's brightness curve matches Photoshop, Photoshop-oracle floor 151/258; G1: Lab documents composite on their stored L, a, b, Photoshop-oracle floor 152/258; G1: Levels on whole levels at every step, Photoshop-oracle floor 146/258, psd-tools 238/309; G1: 32-bit Brightness/Contrast legacy, Channel Mixer, Photo Filter and Black & White tint unclipped as in Photoshop, Photoshop-oracle floor 149/258; G1: mask feathers blur with their exact variance, psd-tools oracle floor 240/309; G1: Threshold splits on Photoshop's luminosity, psd-tools oracle floor 241/309; G1: pass-through clipping base with an adjustment renders isolated, psd-tools oracle floor 240/309; G1: 16-bit Posterize as Photoshop bins it, psd-tools oracle floor 241/309; G1: Gradient Map driven by the W3C luminosity, Photoshop-oracle floor 147/258; G7: Field Blur's on-canvas pins, #3373; G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracle floor 145/258; G11: `.atn` import maps 112 events: Select and Mask, Filter Gallery Spatter, Ripple, Crystallize, Pattern Fill layers, mask targeting, Step Backward, nudges in points, Bitmap mode; G5: Free Transform H/V skew fields; G9: toolbar tool shortcut editing; refreshed against main: G2, G5, G7, G9, G10, G13, G14, G17 items that landed; G10: DPX read and write, #1049; G4: checkbox-only Brush Settings rows; G11: Load/Save Actions `.atn` landed, AUTO-219-2 partial; G5: hold-a-key spring-loaded tools landed, #2672; G1: #2465 fixed; stale missing-tool rows corrected: Color Replacement, Red Eye and Add/Delete Anchor Point are live tools, so only Art History Brush is missing; no estimate changed) · **Target:** Adobe Photoshop 2026
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-15 · **Change:** minor (G9: Animated Zoom pref read: holding the Zoom tool zooms continuously, #6210, prefs that do nothing 25 of 166; G1: smart filter masks show on PSD open, Photoshop-oracle floor 188/258; G10: DPX read and write, #1049, Cineon read; G1: CMYK Hue/Saturation and Color Balance keep the black ink; G1: CMYK Posterize on the stored values, psd-tools oracle floor 242/309; G1: CMYK adjustment layers composite on the document's inks, Photoshop-oracle floor 165/258; G1: CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; G1: modern Brightness/Contrast's brightness curve matches Photoshop, Photoshop-oracle floor 151/258; G1: Lab documents composite on their stored L, a, b, Photoshop-oracle floor 152/258; G1: Levels on whole levels at every step, Photoshop-oracle floor 146/258, psd-tools 238/309; G1: 32-bit Brightness/Contrast legacy, Channel Mixer, Photo Filter and Black & White tint unclipped as in Photoshop, Photoshop-oracle floor 149/258; G1: mask feathers blur with their exact variance, psd-tools oracle floor 240/309; G1: Threshold splits on Photoshop's luminosity, psd-tools oracle floor 241/309; G1: pass-through clipping base with an adjustment renders isolated, psd-tools oracle floor 240/309; G1: 16-bit Posterize as Photoshop bins it, psd-tools oracle floor 241/309; G1: Gradient Map driven by the W3C luminosity, Photoshop-oracle floor 147/258; G7: Field Blur's on-canvas pins, #3373; G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracle floor 145/258; G11: `.atn` import maps 112 events: Select and Mask, Filter Gallery Spatter, Ripple, Crystallize, Pattern Fill layers, mask targeting, Step Backward, nudges in points, Bitmap mode; G5: Free Transform H/V skew fields; G9: toolbar tool shortcut editing; refreshed against main: G2, G5, G7, G9, G10, G13, G14, G17 items that landed; G10: DPX read and write, #1049; G4: checkbox-only Brush Settings rows; G11: Load/Save Actions `.atn` landed, AUTO-219-2 partial; G5: hold-a-key spring-loaded tools landed, #2672; G1: #2465 fixed; stale missing-tool rows corrected: Color Replacement, Red Eye and Add/Delete Anchor Point are live tools, so only Art History Brush is missing; no estimate changed) · **Target:** Adobe Photoshop 2026
Every known shortfall against Photoshop 2026 (27.11.0), one entry each, ranked by user impact
on the way to beta. This is the work list agents pick from: take the highest-ranked entry that
@@ -195,9 +195,11 @@ what an agent can't finish alone.
- **Estimate:** 60–110 h.
### G9. Panels, preferences and workspace
+- **Progress (2026-10-15):** Preferences › General › Animated Zoom takes effect: a held Zoom
+ tool press zooms continuously about the press point, ⌥ out (#6210, `ui-egui/src/zoom_hold.rs`).
- **Progress (2026-10-12):** toolbar tool shortcuts can be reassigned, removed and reset (#4086),
with saved bindings, matching toolbar hints and regression coverage (`ui-egui/src/tool_shortcuts.rs`).
-- **Missing:** 27 of 156 preferences do nothing (scorecard prefs audit); panel groups can't
+- **Missing:** 25 of 166 preferences do nothing (scorecard prefs audit); panel groups can't
float or tear off into OS windows (UI-217-5, #1828, #1213, #2305); Color panel lacks wheel and
slider modes (UI-217-17, #2569); more themes (UI-217-11, #2661); layer clipboard
(UI-217-23, #2670); tool-specific context menus beyond brushes, selections and Pen
@@ -270,6 +272,7 @@ what an agent can't finish alone.
| Date | Change | Summary |
|---|---|---|
+| 2026-10-15 | minor | G9: Animated Zoom preference takes effect (hold the Zoom tool to zoom continuously, #6210); prefs that do nothing 25 of 166; no estimate changed |
| 2026-10-14 | minor | G1: a PSD smart object's filter mask shows when the file opens (Photoshop stores the filtered pixels unmasked); export stores them that way too; Photoshop-oracle floor 185 → 188 of 258 |
| 2026-10-13 | minor | G14: D90 image area measured (4288 × 2848 at (10, 10)); gap remains open |
| 2026-10-14 | minor | Corpus floors raised to the measured results of the CMYK, Lab, 32-bit, Levels, Threshold, Posterize, feather and pass-through fixes landed together: Photoshop-authored 165 → 185 of 258, io 146 → 148 of 170, psd-tools 242 → 249 of 309 |
diff --git a/docs/scorecard.md b/docs/scorecard.md
index 1e0576ba0..8993124ba 100644
--- a/docs/scorecard.md
+++ b/docs/scorecard.md
@@ -9,7 +9,7 @@ Generated by `cargo xtask scorecard` from `perf/budgets.toml`, `perf/baseline.js
| [Performance](#performance) | 3 | 22 | 22 | 56 scenarios: 3 within budget, 22 over budget or failing, 9 tracked only, 17 not run, 5 not measurable yet (baseline 2026-10-05) |
| [File compatibility](#file-compatibility) | 7 | 14 | 6 | io corpus: oracle ≥ 148/170, round trip ≥ 169/170; psd-tools corpus: oracle ≥ 249/309, round trip ≥ 308/309; photoshop oracles: oracle ≥ 188/256, round trip ≥ 258/256 |
| [Tools](#tools) | 33 | 11 | 0 | |
-| [Workspace and UI](#workspace-and-ui) | 13 | 6 | 4 | settings that do nothing: 26 of 166 (target 0) |
+| [Workspace and UI](#workspace-and-ui) | 13 | 6 | 4 | settings that do nothing: 25 of 166 (target 0) |
| [Type](#type) | 4 | 3 | 2 | |
| [Automation](#automation) | 5 | 2 | 4 | 631 of 631 menu items live (100.0%) |
| [Reliability](#reliability) | 5 | 2 | 0 | never-crash lints on 29 of 29 crates; panic_hunt present |
@@ -177,9 +177,9 @@ Corpus floors (`crates/io/tests/corpus.rs`): the enforced minimums; the corpus t
## Workspace and UI
-**Settings that do nothing: 26 of 166** (target 0, #204). Counted by the prefs audit (`xtask/src/scorecard.rs`): a `Preferences` field counts as read when code outside the prefs model (`prefs.rs` except its `impl Session` blocks; tests excluded; the schema-driven dialog never names a field) accesses `section.field`, or `.section` and `.field` in the same file, or calls a section method that reads `self.field`. It is a heuristic lower bound: a generic name can look read when it isn't.
+**Settings that do nothing: 25 of 166** (target 0, #204). Counted by the prefs audit (`xtask/src/scorecard.rs`): a `Preferences` field counts as read when code outside the prefs model (`prefs.rs` except its `impl Session` blocks; tests excluded; the schema-driven dialog never names a field) accesses `section.field`, or `.section` and `.field` in the same file, or calls a section method that reads `self.field`. It is a heuristic lower bound: a generic name can look read when it isn't.
-Unread: `general.color_picker`, `general.animated_zoom`, `general.zoom_resizes_windows`, `workspace.auto_show_hidden_panels`, `workspace.enable_floating_document_window_docking`, `file_handling.save_in_background`, `performance.cache_levels`, `performance.legacy_compositing`, `scratch_disks.disks`, `units_and_rulers.column_width`, `units_and_rulers.gutter`, `plug_ins.show_extension_panels`, `plug_ins.allow_scripts_to_connect`, `plug_ins.generator_enabled`, `type_.text_engine`, `type_.recent_fonts`, `enhanced_controls.scrubby_slider_acceleration`, `enhanced_controls.touch_gestures`, `raw_defaults.color_space`, `raw_defaults.bit_depth`, `raw_defaults.resolution`, `raw_defaults.sharpen_for`, `raw_defaults.open_as_smart_object`, `raw_defaults.apply_auto_tone`, `integrations.allow_agent_control`, `integrations.control_port`.
+Unread: `general.color_picker`, `general.zoom_resizes_windows`, `workspace.auto_show_hidden_panels`, `workspace.enable_floating_document_window_docking`, `file_handling.save_in_background`, `performance.cache_levels`, `performance.legacy_compositing`, `scratch_disks.disks`, `units_and_rulers.column_width`, `units_and_rulers.gutter`, `plug_ins.show_extension_panels`, `plug_ins.allow_scripts_to_connect`, `plug_ins.generator_enabled`, `type_.text_engine`, `type_.recent_fonts`, `enhanced_controls.scrubby_slider_acceleration`, `enhanced_controls.touch_gestures`, `raw_defaults.color_space`, `raw_defaults.bit_depth`, `raw_defaults.resolution`, `raw_defaults.sharpen_for`, `raw_defaults.open_as_smart_object`, `raw_defaults.apply_auto_tone`, `integrations.allow_agent_control`, `integrations.control_port`.
| Id | Target | Status | Issue | Note |
|---|---|---|---|---|
@@ -280,7 +280,7 @@ Never-crash attribute on 29 of 29 crate roots.
| BUG-203-5 | On any failure the original file is untouched and the temp file removed | done | [#203](https://github.com/storytold/photocraft/issues/203) | atomic.rs removes the temp file on every failure; tests assert the original bytes survive write and rename failures |
| BUG-203-6 | Failure-injection tests: mid-write, rename and read-only dir errors keep original bytes | done | [#203](https://github.com/storytold/photocraft/issues/203) | format/src/atomic/tests.rs: Faulty AtomicFs injects mid-write StorageFull, rename failure and a read-only dir; locked-target retries, symlink and file-mode preservation covered too |
| BUG-204-1 | Interface prefs (UI scale, font size, channels in colour, sliders, tooltips) wired or hidden | done | [#204](https://github.com/storytold/photocraft/issues/204) | prefs_ui.rs tick reads ui_scale (sync_display_scale), ui_font_size (theme::set_ui_font_size) and show_tooltips (sync_tooltips); show_channels_in_color is wired in channel_thumbs and the canvas channel view (#2385); dynamic_color_sliders is in prefs::HIDDEN_UNTIL_IMPLEMENTED |
-| BUG-204-2 | workspace.large_tabs, animated_zoom, auto_show_home_screen wired or hidden | done | [#204](https://github.com/storytold/photocraft/issues/204) | workspace.large_tabs controls document tab height in canvas.rs; auto_show_home_screen drives the Home screen; animated_zoom is in prefs::HIDDEN_UNTIL_IMPLEMENTED |
+| BUG-204-2 | workspace.large_tabs, animated_zoom, auto_show_home_screen wired or hidden | done | [#204](https://github.com/storytold/photocraft/issues/204) | workspace.large_tabs controls document tab height in canvas.rs; auto_show_home_screen drives the Home screen; general.animated_zoom makes a held Zoom tool press zoom continuously (zoom_hold.rs, #6210) |
| BUG-204-3 | RAW prefs and ask_before_saving_layered_tiff read, or hidden | done | [#204](https://github.com/storytold/photocraft/issues/204) | ask_before_saving_layered_tiff drives the TIFF Options prompt (ui-egui tiff_options_ui.rs); raw_defaults.open_in_camera_raw drives the Camera Raw dialog (camera_raw_ui.rs); the other raw_defaults fields are in prefs::HIDDEN_UNTIL_IMPLEMENTED |
| BUG-204-4 | Recent files persisted through prefs across restarts | done | [#204](https://github.com/storytold/photocraft/issues/204) | crates/ui-egui/src/lib.rs::push_recent stores the list in preferences; prefs_ui::load restores it and recent_files_survive_a_restart_and_honour_the_count verifies reload |
| BUG-204-5 | Recent-files list honours recent_file_count (default 20) | done | [#204](https://github.com/storytold/photocraft/issues/204) | lib.rs push_recent caps the list with recent_cap (recent_file_count); menus.rs covers default and custom limits |
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index 793f09840..8a2194f35 100644
--- a/docs/ui-parity.md
+++ b/docs/ui-parity.md
@@ -1,6 +1,6 @@
# UI parity: tools, handles, modifiers and feel
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-15 · **Change:** minor (Pen Auto Add/Delete on the path being drawn, #6140; Show Transform Controls frames every selected layer; guide keys and clicks; menu bar from the keyboard, #4988; Crop tool Content-Aware Fill; on-canvas corner radius widgets, TOOL-214-12; Curvature Pen edits the active path; Clip Thumbnails to Layer Bounds; Pen ⇧ 45°; last selected tool restored at launch; Layers panel filter-type dropdown with Kind, Name and Mode, #5048; Free Transform box and marching ants follow the selection, #5297; History: the trash deletes the selected snapshot, rows drag onto the trash, #5324; smart filter reordering by drag; smart object perspective row corrected to done, #426; Free Transform H/V skew fields; toolbar tool shortcuts can be reassigned; ⇧-dragged guides land on ruler ticks; layer and selection keys; tool keys; spring-loaded tool letters; type formatting keys; Pen Auto Add/Delete, #4144; smart filter rows; stale missing-tool rows corrected: Color Replacement, Red Eye and the Add/Delete Anchor Point pair are live toolbar tools, Frame landed; no percentage changed) · **Target:** Adobe Photoshop 2026
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-15 · **Change:** minor (Animated Zoom: holding the Zoom tool zooms continuously, #6210; Pen Auto Add/Delete on the path being drawn, #6140; Show Transform Controls frames every selected layer; guide keys and clicks; menu bar from the keyboard, #4988; Crop tool Content-Aware Fill; on-canvas corner radius widgets, TOOL-214-12; Curvature Pen edits the active path; Clip Thumbnails to Layer Bounds; Pen ⇧ 45°; last selected tool restored at launch; Layers panel filter-type dropdown with Kind, Name and Mode, #5048; Free Transform box and marching ants follow the selection, #5297; History: the trash deletes the selected snapshot, rows drag onto the trash, #5324; smart filter reordering by drag; smart object perspective row corrected to done, #426; Free Transform H/V skew fields; toolbar tool shortcuts can be reassigned; ⇧-dragged guides land on ruler ticks; layer and selection keys; tool keys; spring-loaded tool letters; type formatting keys; Pen Auto Add/Delete, #4144; smart filter rows; stale missing-tool rows corrected: Color Replacement, Red Eye and the Add/Delete Anchor Point pair are live toolbar tools, Frame landed; no percentage changed) · **Target:** Adobe Photoshop 2026
How PhotoCraft's direct manipulation compares with Photoshop 2026 (27.11.0): the toolbox, the
handles and modifier keys of each gesture, nudging, snapping, numeric precision, navigation,
@@ -170,7 +170,7 @@ Triangle and Curvature Pen (minus legacy Rounded Rectangle and Targeted Adjustme
| Hold any tool letter for a temporary tool | done | `spring_tools.rs`: held ≥ 300 ms or used on the canvas, release gives the previous tool back; ⇧ never springs (#2672) |
| Scrubby zoom | done | `zoom_tool.rs` |
| Flick panning | done | `flick_pan.rs` (Preferences › Tools › Enable Flick Panning) |
-| Animated zoom | missing | unread pref; #566 |
+| Animated zoom | partial | `zoom_hold.rs`: with Preferences › General › Animated Zoom on, a Zoom press held still past 0.3 s zooms continuously about the press point (2 doublings a second, ⌥ out) until release (#6210); eased click steps still missing (#566) |
| Double-click Zoom tool = 100%, double-click Hand = fit | partial | Zoom missing (#2508) |
| ⌥-wheel zoom in gentle steps | missing | UI-217-18 |
| Wheel, smooth scrolling and pinch as in Photoshop | partial | #2485, #2463, #1989 |
@@ -243,6 +243,7 @@ Paragraph; the rest open as in-app floating windows.
| 2026-10-11 | minor | Spring-loaded tool letters done (#2672): holding any tool letter (Z included) past 300 ms, or using the canvas while it is down, makes the tool temporary until release |
| 2026-10-11 | minor | Type formatting keys done: ⇧⌘K, U, B, I and /, ⌥↑/↓, ⇧⌥↑/↓, ⌥←/→ over a selection and ⌥⇧⌘H format the selected type while editing, and no longer reach Color Settings, Desaturate, Auto Color or Inverse |
| 2026-10-12 | minor | Pen Auto Add/Delete on the active path, with its options-bar checkbox, hover feedback and + / − cursor badge (#4144) |
+| 2026-10-15 | minor | Animated zoom partial: with Animated Zoom on, holding the Zoom tool's button zooms continuously about the press point, ⌥ out (#6210) |
| 2026-10-15 | minor | Pen Auto Add/Delete works on the path being drawn: a click on its segment adds an anchor, on a middle anchor deletes it, and drawing carries on (#6140) |
| 2026-10-12 | minor | Toolbar tool shortcuts can be reassigned, removed and reset in Keyboard Shortcuts (#4086); capture, restart, group cycling, conflict and text-focus regressions |
| 2026-10-12 | minor | Smart filter rows can be selected, and dragged (⌥: copied) onto another smart object or onto Delete (#4271) |
diff --git a/scorecard/bugs.toml b/scorecard/bugs.toml
index a4620bf7d..8a32dab9f 100644
--- a/scorecard/bugs.toml
+++ b/scorecard/bugs.toml
@@ -60,7 +60,7 @@ id = "BUG-204-2"
target = "workspace.large_tabs, animated_zoom, auto_show_home_screen wired or hidden"
status = "done"
issue = 204
-note = "workspace.large_tabs controls document tab height in canvas.rs; auto_show_home_screen drives the Home screen; animated_zoom is in prefs::HIDDEN_UNTIL_IMPLEMENTED"
+note = "workspace.large_tabs controls document tab height in canvas.rs; auto_show_home_screen drives the Home screen; general.animated_zoom makes a held Zoom tool press zoom continuously (zoom_hold.rs, #6210)"
[[item]]
id = "BUG-204-3"