Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
File drop area keeps vanishing #202
Okay, I'm able to reproduce it and I understand the issue. The problem is in files.js. There is a timer that causes the file upload overlay to disappear after 100ms. Ideally, the
One solution is to modify the above line from 100 to 400. 400 is safely above 350ms. I tested this on my computer and it works. However, 400ms is slow and the webpage becomes a little clunky.
A better solution is to use dragenter and dragleave. It's tricky because a dragleave event occurs when the overlay appears to so you can't just hook dragleave. You need to make sure that it's dragleave of the most recent dragenter. I'll write a PR for that. In the meanwhile, try changing 100 to 400 and see how you like. If it's good enough for you, okay. If it's too slow then the dragleave solution is more complicated but much nicer.