nervgh/angular-file-upload — pull request #312 by taxilian (2014-11-24 19:54:16+00:00)
Title: Add failsafe to avoid flickering due to spurious out events

I fought with this for a couple of hours to find a cleaner fix, but this seems to be the best option. There are actually some browsers (Chrome and Safari on Mac specifically) where in some cases I received dragleave events more frequently than dragover events.

- On certain pages I actually get more out events than I do over events;
drop still works fine, but I get lots of flickering on the page. With
this change as long as those events aren't slower than 50ms it doesn't
happen, but 50ms is still short enough it's not really noticeable.