Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 2 tasks
acsr opened this issue May 1, 2024 · 0 comments
Open
1 of 2 tasks

Comments

@acsr
Copy link

acsr commented May 1, 2024

Search first

  • I searched and no similar issues were found

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:

  • I am in Zoom 100% mode (no scaling)
  • I tried image assets in different pathes (regular path, plugin pathused by multiselect plugin) same result.
  • I tried different starting points inside the image (close to the top or bottom) to avoid side effects of some minor adjustments I did in the custom css. When nothing is preselected, it works sometimes if I click in the upper area that contains the image link later when edit modes is active.
  • I use a lot of Plugins. It would be worth a test without of them , but how do I setup easily a second vanilla Logseq Instance without spoiling my environment? So I am asking if others share the same effect.

Screenshot 2024-05-01 um 18 38 25

  • the red marked stuff is the start and drag path
  • the green stuff ist how the intended content looks like
  • the blue stuff is the actual moved and placed content

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

  • I'm willing to submit a PR (Thank you!)
@acsr acsr changed the title Whiteboard Drag & Dropm from right sidebar block containing existing image content drops next item Whiteboard Drag & Drop from right sidebar block containing existing image content drops next item May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant