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

[Bug]: Drag and Drop doesn't work #145

Open
Sjmarf opened this issue May 10, 2023 · 1 comment
Open

[Bug]: Drag and Drop doesn't work #145

Sjmarf opened this issue May 10, 2023 · 1 comment
Labels
bug Something isn't working ui User interface-related issues

Comments

@Sjmarf
Copy link
Contributor

Sjmarf commented May 10, 2023

Describe the Bug

When I drag a screenshot file into the Swiftcord window and let go, the image doesn't appear above the message bar. Uploading an image using the + button works just fine, and dragging from Finder works too. This bug only happens when you drag a screenshot into the window.

Reproducing the Bug

  • Use ⌘⇧3 to take a screenshot
  • Drag the screenshot that appears in the bottom-right of the screen into Swiftcord
  • No file appears in Swiftcord

Version

0.6.0

Category

Media (images, audio, video etc.)

Relevant Log Output

No response

Screenshots

Screen.Recording.2023-05-10.at.17.53.43.mov

Additional Info

No response

@Sjmarf Sjmarf added bug Something isn't working triage Waiting for this issue to be triaged labels May 10, 2023
@cryptoAlgorithm
Copy link
Member

I've noticed this bug while using Swiftcord myself, and after some debugging it turns out that the issue is way more difficult to fix than expected. Turns out, images directly dragged from the small floating image on the bottom right don't have the normal document content type in the clipboard (that Swiftcord expects), but some weird ns-image (or similar, I might've forgotten) format that seems more difficult to handle. I might rework some code to handle it, but it will be very difficult to support both drop item types.

@cryptoAlgorithm cryptoAlgorithm added ui User interface-related issues and removed triage Waiting for this issue to be triaged labels May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ui User interface-related issues
Projects
None yet
Development

No branches or pull requests

2 participants