Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom state and button remain active after responsive changes #69086

Open
3 of 6 tasks
Infinite-Null opened this issue Feb 7, 2025 · 0 comments · May be fixed by #69087
Open
3 of 6 tasks

Zoom state and button remain active after responsive changes #69086

Infinite-Null opened this issue Feb 7, 2025 · 0 comments · May be fixed by #69087
Assignees
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@Infinite-Null
Copy link
Contributor

Description

The zoom state in the editor doesn't properly reset when the component unmounts, causing the zoom state to persist unexpectedly across editor sessions and responsive view changes.

Step-by-step reproduction instructions

  1. Open the WordPress block editor
  2. Click the zoom out button to activate zoom
  3. Resize the browser window to a smaller width
  4. Resize the browser window back to larger width
  5. Observe that the zoom visual effect is lost but the button remains in a "pressed" state

Screenshots, screen recording, code snippet

Screen.Recording.2025-02-07.at.12.10.49.PM.mov

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@Infinite-Null Infinite-Null added the [Type] Bug An existing feature does not function as intended label Feb 7, 2025
@Infinite-Null Infinite-Null linked a pull request Feb 7, 2025 that will close this issue
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant