Skip to content

[Bug]: Dragging a note from the sidebar when a board is open lags the editor out significantly #1201

Description

@blubbers122

Describe the bug

This is especially noticable with a board with several lists and items. Mine has 400+ items and 10ish lists.
New to this codebase, but my first guess is this is a performance issue with calculating the potential list insertion point in the case of the user placing the note from the sidebar into a list to create a new item. It might need spatial partitioning if the issue is what I think it is.

Expected Behavior

The editor should be responsive and shouldn't slow down to < 10fps :)

Steps to reproduce

  1. Open a kanban board with several items (several hundred to really notice performance issue)
  2. open the left sidebar (Files)
  3. drag a file from the sidebar over the kanban board screen area
  4. observe obsidian responsiveness

Relevant errors (if available)

Operating system

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions