Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs(guide/directive): fix myDraggable for zoomed page #4687

Closed
wants to merge 1 commit into from
Closed

docs(guide/directive): fix myDraggable for zoomed page #4687

wants to merge 1 commit into from

Conversation

gaborcs
Copy link
Contributor

@gaborcs gaborcs commented Oct 28, 2013

Replace screenX/Y with pageX/Y in the myDraggable directive to fix dragging on a zoomed page.

Replace screenX/Y with pageX/Y in the myDraggable directive to fix dragging on a zoomed page.
@mary-poppins
Copy link

Thanks for the PR!

  • Contributor signed CLA now or in the past
    • If you just signed, leave a comment here with your real name
  • PR's commit messages follow the commit message format

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@gaborcs
Copy link
Contributor Author

gaborcs commented Oct 28, 2013

Gabor Csizmadia

@gaborcs gaborcs deleted the my-fix-branch branch October 28, 2013 22:25
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
If you have zoomed into the page in your browser then the screen coordinate system no longer
matches the page coordinate system.  To ensure that dragged elements work correctly when zoomed
we should use pageX/pageY rather than screenX/screenY.

Closes angular#4687
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
If you have zoomed into the page in your browser then the screen coordinate system no longer
matches the page coordinate system.  To ensure that dragged elements work correctly when zoomed
we should use pageX/pageY rather than screenX/screenY.

Closes angular#4687
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants