WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.58k stars 4.23k forks source link

Don't show Zoom Out dropzones for block currently being dragged #67567

Open getdave opened 17 hours ago

getdave commented 17 hours ago

Description

When in Zoom Out it's possible to drag sections to new locations within the block list. When dragging drop zones appear before/after each "section" in the editor.

Unfortunately however, dropzones also appear for the block which is currently being dragged. This makes no sense as you'd affectively be dropping in the exact same location.

Let's not show dropzones for the current block's location.

Step-by-step reproduction instructions

  1. Zoom Out
  2. Drag a "section"
  3. See that dropzones appear above and below the "section" you are dragging.

Screenshots, screen recording, code snippet

https://github.com/user-attachments/assets/19d6094b-b15b-4c1d-afa8-a37d8bd40d9c

Environment info

No response

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

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

Please confirm which theme type you used for testing.

getdave commented 17 hours ago

cc @richtabor who demo'd this to me and may wish to provide additional context