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

File-drag.html example not working #45

Open
Guilouf opened this issue Apr 15, 2019 · 1 comment
Open

File-drag.html example not working #45

Guilouf opened this issue Apr 15, 2019 · 1 comment
Labels

Comments

@Guilouf
Copy link

Guilouf commented Apr 15, 2019

In fact it is not working every time. Sometimes the file are detected, and their name is printed, sometimes not. The drop event is always fired.

Here is an output, showing that it only worked once:

File(s) in drop zone
File-drag.html:32:7
File(s) dropped File-drag.html:39:7
Removing drag data File-drag.html:65:7
File(s) in drop zone
File-drag.html:32:7
File(s) dropped File-drag.html:39:7
Removing drag data File-drag.html:65:7
File(s) in drop zone
File-drag.html:32:7
File(s) dropped File-drag.html:39:7
Removing drag data File-drag.html:65:7
File(s) in drop zone
File-drag.html:32:7
File(s) dropped File-drag.html:39:7
... file[0].name = screen_fluoread.png File-drag.html:50:13
Removing drag data

Files from os to browser using firefox. Using chrome there is no issues

@luisbc92
Copy link

luisbc92 commented May 2, 2019

I tested this example in Firefox on both Windows and Linux and found that the behavior is different.

In Linux (tested Firefox 60.6.1esr and 66.0.3, both 64-bit), I noticed that when you drag one or more files over, the dragover event takes some time to fire (scaling with the size of the files). If you drop before this event happens, the drop event does not occur.

In Windows (Firefox 66.0.3 64-bit), the dragover event happens instantly and the example works as expected. I wasn't able to test the case where I drop the files before the dragover event fires.

schalkneethling pushed a commit that referenced this issue Aug 13, 2022
chore: prepare repo for move to dom-examples
@caugner caugner added needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. area: drag-and-drop labels Oct 10, 2023
@caugner caugner added bug A routine task. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@caugner @Guilouf @luisbc92 and others