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 problem when page is scrolled #64

Open
YannickBochatay opened this issue Nov 20, 2017 · 1 comment
Open

drag problem when page is scrolled #64

YannickBochatay opened this issue Nov 20, 2017 · 1 comment

Comments

@YannickBochatay
Copy link

Hi,
there's a problem of drag'n drop when page is scrolled.
I looked at the file drag.js, and don't understand why you add scroll in the object returned (scroll is already added in the pageY property).
When I comment like this, it works fine :

return { x: xPos /* + Math.max(document.documentElement.scrollLeft, document.body.scrollLeft)*/, y: yPos /* + Math.max(document.documentElement.scrollTop, document.body.scrollTop)*/ };

@Gamesh
Copy link

Gamesh commented Apr 18, 2019

i also encountered this strange behavior on mobile phones where the screen is smaller the scrollbar appears and it breaks the drag.

Any news on this?

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

2 participants