Fix NaN bounds in FocalPointPicker #28406
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Two small changes here.
The main one is to address an issue (I've not seen reported) in which the focal point picker component causes a console error and ceases to allow adjustment in the horizontal axis. Perhaps this is an issue that may not occur on some setups but happens every time (EDIT: in Chrome) on my modestly powered laptop which is the only device I've tested on for now.
UPDATE: I've tested in Firefox and didn't reproduce (but didn't try very hard). It is possible according to this comment #28406 (comment). UPDATE № 2: I tested in Safari and found that I couldn't reproduce unless the console was opened 🙈
The second change is an unrelated minor documentation update. When searching for issues with this component I saw #16056 and figured it wouldn't hurt to address that too.
How has this been tested?
In a post with Cover or Media & Text blocks. Selecting such blocks and verifying there are no errors in the console. Using the Focal point picker and verifying that it works in both vertical and horizontal axes.
Screenshots
Before, with error and broken x-axis:
focal-point-picker-before.mp4
After, resolved:
focal-point-picker-after.mp4
Types of changes
Bug fix #28487
Documentation fix: #16056
Checklist: