Skip to content

Add failsafe to avoid flickering due to spurious out events #312

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

taxilian
Copy link

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.

- 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.
@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.

2 participants