Commit Graph
3 Commits
Author SHA1 Message Date
8cdb452ef3 transform: keep a refused transform-controls press out of the Move tool (#11252)
With the Background among the selected layers, a press on a Move-tool
transform handle showed the locked-layer alert but was still forwarded
to the Move tool as Down (and, for a click, the tap and Up), so
Auto-Select could change the layer selection. begin_transform_controls_at
now returns ControlsPress (Missed / Started / Refused); the canvas press
and click paths and the ui.pointer path drop a Refused press. Tests drive
real canvas frames (click and drag) and ui.pointer, with an unselected
layer under the handle.

Co-Authored-By: NaufalDzz <NaufalDzz@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 17:09:44 +01:00
David MannandClaude Opus 5.5 a5cb392646 transform: follow the selection the box opened with; frame the Background in the controls
- A box now records the Layers panel's selection when it opens and is applied when that
  selection changes. Comparing the layers it moves with the selection's targets closed a box
  over a linked layer at once (main's #11217 adds the link group to the box), and missed a
  group's child leaving the selection (CodeRabbit).
- Move > Show Transform Controls frames the Background among several selected layers, and a
  handle press shows "Could not transform because the layer is locked." and changes nothing,
  as measured in #11101. The Background alone still gets no box.
- The new alert is translated in every catalog that has the Free Transform one.
- Stale comments and edit.transform's params doc no longer say the Background is left out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 13:07:12 +01:00
NaufalDzz a28aa21828 fix(transform): refuse the Background among several layers and apply the box on a selection change
Free Transform of several selected layers left the Background out
without a word, where Photoshop refuses with its locked-layer alert. And
with the box open, taking a layer out of the selection (or adding one)
without changing the active layer left the box open, still moving the
layers it started with.

- targets_of keeps the Background; edit.transform's selection default
  refuses with `layer "Background" is locked`, and Ctrl+T / Edit ›
  Transform show the same alert as a position-locked layer. An explicit
  `layers` list and the Background alone keep today's behaviour.
- Move › Show Transform Controls shows no box for that selection either.
- Any change to the selected layers while a layer box is open applies
  the box to the layers it moves, and doesn't open it again.

Fixes #11101
2026-11-04 09:51:52 +07:00