logseq / logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
https://logseq.com
GNU Affero General Public License v3.0
30.07k stars 1.76k forks source link

Whiteboard Drag & Drop from right sidebar block containing existing image content drops next item #11285

Open acsr opened 2 weeks ago

acsr commented 2 weeks ago

Search first

What Happened?

  1. When I drag & drop an image from the right sidebar it is hard to catch the image and not enter edit mode.
  2. Even when I am fast enough, instead of the image where the drag starts, another image (the next one from a block below) is placed in the whiteboard. I use a kind of image bank of scanned Post-Its as a source, every image placed in a block one after the other.

Reproduce the Bug

  1. Load the page/block containing the image reference in the right sidebar by shift clicking the block/page
  2. Click on an image and immediately drag and drop it to the whiteboard without significant delay (if too slow the block enters edit mode and the dragging fails at all)
  3. Instead of the image inside of the mousebutton went down, the next following image hooks up unter the cursor and shows up in the whiteboard after dropping it. The Block you clicked in goes into edit mode in the sidebar.
  4. This could be due to the next item moves up in the moment the intended block enters edit mode and the next block catches up in position

Expected Behavior

Motivation: I tried different workflows to add images already existing as assets and are referenced in a block to my whiteboard. Goal: Drag & Drop attach an image asset existing in Logseq and already used in a block to the whiteboard (and link it to the original place of the image.)

Screenshots

No response

Desktop or Mobile Platform Information

Logseq 0.10.9 Desktop on macOS Ventura latest on MacBookPro M1

Additional Context

What I checked first:

Screenshot 2024-05-01 um 18 38 25

Are you willing to submit a PR? If you know how to fix the bug.