Skip to content

Drag and drop performance regression #42363

@msurdi

Description

@msurdi

Description

When dropping an image on the editor, there are certain position intervals where the blue drop position indicator is added and removed from the DOM in an infinite loop. See the attached video.

Step-by-step reproduction instructions

  1. Write three paragraphs
  2. Drag any image and, without actually dropping it, try to position it between two paragraphs as shown in the video
  3. Try moving slowly up or down the drop position until the blinking starts to happen.

Screenshots, screen recording, code snippet

blinking.drop.mp4

Environment info

Gutenberg: v13.6.0
Theme: Twenty Twenty Two
WordPress version: 6.0-RC4-53438

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

Metadata

Metadata

Assignees

Labels

[Feature] Drag and DropDrag and drop functionality when working with blocks[Priority] HighUsed to indicate top priority items that need quick attention[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions