Skip to content

Drag-and-drop images from Windows Explorer blocked #344

Description

@Ricotta12345

Describe the bug

When trying to drag and drop image file from local folder in Windows Explorer to image area in Generate tab, block sign (reg circle with diagonal line) appears when cover file above image area, nothing happens when drops. Open file dialog by click works as usual.
Dev console don't show any messages during the whole drag-n-drop process.
If I manually replace event listeners for 'dragover' and 'drop' events with "preventDefault()" via dev console, then block sign is disappears.
Similar bug was described in #19 #19 and marked as fixed, but I Guthub don't allow me to reopen it, also my issue looks as different bug (because even no dropped image in the slot shows and block sign presented).

Steps to reproduce

  1. Open Modly with by launch.bat without admin privileges.
  2. Open any workflow with "Image" node.
  3. Open Generation tab and select this workflow.
  4. Open Windows Explorer.
  5. Drag image file by mouse (LMB hold) from local folder to image area in Generate tab.
  6. Drop image in the image area (release LMB).
  7. Open dev console by Ctrl+Shift+I
  8. Enter window.addEventListener('dragover', e => e.preventDefault()); in console
  9. Enter window.addEventListener('drop', e => e.preventDefault()); in console
  10. Repeat steps 5 and 6, see the difference (no block sign anymore)

Modly version

0.4.2

Operating system

Windows 10 21H2

Screenshots & logs

Image

Confirmation

  • I have searched existing issues and this has not been reported yet.
  • I can reproduce this on the latest version of Modly.

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions