Skip to content

Fix for flickering issue when using a drop overlay #331

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

Closed
wants to merge 1 commit into from

Conversation

rmorlok
Copy link

@rmorlok rmorlok commented Dec 23, 2014

I was having problems with flickering (as a few of the other pull requests also call out) when using a translucent overlay div that would cover the dropzone. As soon as the overlay would come out, the dragleave event would fire on the drop zone, and flickering would ensue. What I did was introduce a new element nv-file-drop-curtain that parallels nv-file-over, except it expects to be an overlay over the entire drop area. When in play, the curtain is responsible for for the dragleave event rather than the drop zone.

I haven't tested this with multiple drop areas on a page.

@rmorlok
Copy link
Author

rmorlok commented Apr 29, 2015

Sure, does this work for you?

http://codepen.io/anon/pen/mJJyRy

@nervgh
Copy link
Owner

nervgh commented Jul 28, 2015

fixed #286

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.

3 participants