Skip to content

Expose before/after in drag and drop experience #54952

Open

Description

@mtias

We currently rely a bit too much on the ellipsis menu for precisely inserting a block before or after another block. This is not the most intuitive flow, since you need some time to become acquainted with the interface to discover it. Most users would tend to search for a block and try to drag it into place. They would generally fail to position the dragged object since we only use the sibling inserter.

Let's explore exposing the before/after hooks when dragging over any block so that we can improve awareness of this functionality. These hooks already exist, so it's a pity they are absent from the drag and drop experience. I think this could drastically improve the reliability of the editor.

Activity

  1. added
    [Type] Enhancement
    [Feature] Inserter
    [Feature] Drag and Drop
    on Sep 30, 2023
  2. added
    Needs Design
    on Oct 25, 2023
  3. andrewserong commented on Oct 25, 2023

    @andrewserong
    Contributor

    Just adding the "Needs Design" label, it'd be good to explore some ideas for how this could look visually. I.e. do we reserve the area of the size of the block that's being dragged or attempt to preview how the block would look in the target position before releasing the mouse button? Or, do we go for something a bit more abstract for indicating the before/after positions (i.e. via additional lines or other visual indicators).

  4. ellatrix commented on Jul 11, 2024

    @ellatrix
    Member

    Let's explore exposing the before/after hooks

    Could you elaborate on this? What are the before/after hooks?

  5. mtias commented on Aug 2, 2024

    @mtias
    MemberAuthor

    Just the before / after slots for blocks—I imagine something like dragging on top of another block and getting a dropzone popover for before / after. If we ever add displacement, this becomes mute.

  6. ellatrix commented on Aug 5, 2024

    @ellatrix
    Member

    I guess I'm not following. When you drag a block from the inserter over a block in the canvas, it already shows the before/after insertion point, depending on whether you're dragging over the top half or bottom half?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design[Feature] Drag and Drop[Feature] Inserter[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions