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

filtering out spurious mouseMove preventing mouseClick in Chrome #58

Closed
g-van-vreckem opened this issue Sep 18, 2014 · 2 comments
Closed

Comments

@g-van-vreckem
Copy link

There is a problem with the current version of Chrome:
It very often emits mouseMouve event after the mouseDown event and before the mouseUp but with no user mouse movement (big killing bug!).
In this case, this should restore the click functionality, while being transparent for browser with no e.movementX support.

  onDocumentMouseMove: function(e) {
    Cursor.refresh(e);
    if (this.dragging) {
      if( !this.activity && e.movementX === 0 && e.movementY === 0 ) return;
      this.activity = true;
    }
  },
@ovidiuch
Copy link
Owner

ovidiuch commented May 9, 2015

I wouldn't optimize for Chrome bugs. Can you please let us know if this is still an issue?

@selim-bakir
Copy link

Thanks for this bugfix ! it was very helpful for my project !

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

No branches or pull requests

3 participants