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

Dragging patterns in the block library causes an extra scrollbar to become visible #44866

Closed
talldan opened this issue Oct 11, 2022 · 1 comment
Labels
[Feature] Drag and Drop Drag and drop functionality when working with blocks [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Bug An existing feature does not function as intended

Comments

@talldan
Copy link
Contributor

talldan commented Oct 11, 2022

Description

Note that #44853 solved a similar issue. This one is a little different. It looks like the .components-draggable__clone element that's appended to the body while dragging a pattern causes the <body> element itself to show a scrollbar.

I'm not sure why this is something that only happens when dragging patterns, while dragging blocks from the block library doesn't cause the same bug.

Step-by-step reproduction instructions

To test this more clearly on a mac, adjust your OS settings:
System Preferences > General > set 'Show scroll bars' to 'Always'

  1. Open the block library
  2. Switch to the patterns tab (or stay where you are in the site editor
  3. Start dragging a pattern

Screenshots, screen recording, code snippet

Kapture.2022-10-11.at.15.00.28.mp4

Environment info

Mac OS / Brave / Gutenberg trunk

From what I can tell this doesn't happen in WordPress 6.1 beta 3, so it could be a relatively recent bug.

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

@talldan talldan added [Type] Bug An existing feature does not function as intended [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Drag and Drop Drag and drop functionality when working with blocks labels Oct 11, 2022
@talldan talldan changed the title Drag and dropping patterns causes an extra scrollbar to become visible Dragging patterns in the block library causes an extra scrollbar to become visible Oct 11, 2022
@talldan
Copy link
Contributor Author

talldan commented Oct 12, 2022

I can't reproduce this now, so closing it.

Not sure what was happening 😕

@talldan talldan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Drag and Drop Drag and drop functionality when working with blocks [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

1 participant