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

Drag & drop doesn't work on mobile Chrome when zoomed in #125

Open
tsim0 opened this issue Apr 9, 2016 · 0 comments
Open

Drag & drop doesn't work on mobile Chrome when zoomed in #125

tsim0 opened this issue Apr 9, 2016 · 0 comments

Comments

@tsim0
Copy link

tsim0 commented Apr 9, 2016

After doing some debugging, it seems like the problem is in using $.offset to get elements offset which works incorrectly on Chrome. https://bugs.jquery.com/ticket/5565
Something like monkey patching $.offset like this solves the issue.

$.prototype.offset = function() {
  return {
    left: this[0].offsetLeft,
    top: this[0].offsetTop
  };
};
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

1 participant