Skip to content

Add a timeout for the in-between-inserter for cases where the onmouseout isn't invoked #35536

@jasmussen

Description

@jasmussen

The in-between inserter shows up when you hover between two blocks, and disappears when you move the cursor out from that area:

inserter

However a number of actions can cause this inserter to linger and stay, presumably because mouse action to fade the inserter out again isn't fired. One easy way to reproduce this is is to use the keyboard shortcut to open the list view, control alt O, while the inserter is present:

lingering quick inserter

Other ways to make the inserter linger is when keyboard shortcuts are used to resize the window, or to invoke the web inspector. It also happens if the viewport resizing gets invoked:

lingering

Quite simply, if you move the mouse out from canvas itself fast enough, it will stay around. Occasionally this can cause horizontal or even double scrollbars to appears, as the canvas size is reduced while a stray sibling inserter lingers in the canvas (#30055).

To address this and fade out the sibling inserter in these cases, can we add a timeout that checks if the mouse is over the sibling inserter, and fade it out if not? Are there other solutions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] InserterThe main way to insert blocks using the + button in the editing interface[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