Skip to content

[6.x] Add inputs to edit focal points#13935

Merged
jackmcdade merged 1 commit into6.xfrom
focal-point-inputs
Feb 14, 2026
Merged

[6.x] Add inputs to edit focal points#13935
jackmcdade merged 1 commit into6.xfrom
focal-point-inputs

Conversation

@jackmcdade
Copy link
Member

@jackmcdade jackmcdade commented Feb 14, 2026

References statamic/ideas#628


Note

Low Risk
UI-only change in the focal point editor that mainly adds input controls and value validation/clamping, with minimal impact beyond stored focal point formatting.

Overview
Adds numeric ui-input fields to directly edit focal point x/y percentages and z zoom, alongside the existing click-to-set and zoom slider controls.

Normalizes focal point values to numbers and introduces clamping/rounding (clampPercent, clampZoom) applied on mount, manual input changes, image clicks, and before emitting selected, preventing invalid or out-of-range coordinates/zoom from being saved.

Written by Cursor Bugbot for commit 259660c. This will update automatically on new commits. Configure here.

@jackmcdade jackmcdade marked this pull request as ready for review February 14, 2026 04:38
@jackmcdade jackmcdade merged commit 76d57ee into 6.x Feb 14, 2026
15 checks passed
@jackmcdade jackmcdade deleted the focal-point-inputs branch February 14, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant