fatlinesofcode/ngDraggable — pull request #17 by Sanbornh (2014-08-27 15:32:17+00:00)
Title: Develop

Here's my suggestion for a change to the drag anchor point behaviour.

I've added the option to include the attribute ng-center-anchor. If you leave it off it will default to true and behave exactly like normal. Same if you explicitly set it to true. If you set it to false then the div won't jump to center on the point clicked but instead the anchor point on the div will be wherever you clicked it. Depending on what you are using ngDraggable for, I think this provides a more intuitive interaction.

I also added a button to example.html to toggle this behaviour so people can see the difference in turning it on or off. It's not pretty, I just plugged it in quickly to test it and decided to leave it in there for display purposes.

Finally, I added the attribute to the readme and made a note about its use.

Let me know what you think.