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

fix: hide drag overlay on mouse drag leave #1496

Merged

Conversation

pedrolamas
Copy link
Member

The main issue here I believe was with the fact that the overlay would start with pointer-events enabled even though we are disabling from the root element via code, so there was a small race condition.

Setting pointer-events: none on the overlay styling seems to have solved that problem.

Furthermore, the dragenter event seems to work better using the same code as dragover so I made both methods use the same handler.

I've tested this on Windows 11 with the Chrome (latest), Firefox (latest) and Edge (latest dev version) and got it working perfectly on all of them.

Fixes #1450

@pedrolamas pedrolamas added the GH - Bug Something isn't working label Sep 19, 2024
@pedrolamas pedrolamas added this to the 1.30.5 milestone Sep 19, 2024
@pedrolamas pedrolamas merged commit 74890da into fluidd-core:develop Sep 20, 2024
5 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/fix-drag-overlay branch September 20, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GH - Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The view changes for file uploads, but doesn't revert back.
1 participant