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

Use "drop" event instead of "dragend" in Firefox #24

Merged
merged 5 commits into from
Sep 23, 2024

Conversation

EtSL33py
Copy link
Contributor

In Firefox 'drop' event has correct coordinates ‘clientX’ and ‘clientY’. If the browser is Firefox then 'dragstart' event will be added to the previews instead of 'dragend', and 'drop' will be added to the canvas.

I'm not sure that's the optimal solution.

Resolve #23

@cdb-boop
Copy link
Contributor

The reason I added special code for Firefox was that elementFromPoint was returning a different value than Chromium browsers when working on a second monitor. Issue here. I'll need to test this to make sure this does not reopen the issue.

@cdb-boop
Copy link
Contributor

I tested it and it seems to work with multiple screens (with window full, partial, across) on Windows 11.

@hayden-fr hayden-fr merged commit 67fcfa0 into hayden-fr:main Sep 23, 2024
@EtSL33py EtSL33py deleted the test branch September 24, 2024 05:23
@EtSL33py EtSL33py restored the test branch September 25, 2024 08:17
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

Successfully merging this pull request may close these issues.

Small issue with firefox's drag fix
3 participants