desandro / draggabilly

:point_down: Make that shiz draggable
https://draggabilly.desandro.com
MIT License
3.86k stars 387 forks source link

Support 'transform: scale()' on body #81

Closed mebibou closed 9 years ago

mebibou commented 9 years ago

When using css transform: scale() on the body, position of the dragged element does not take the scale into account, therefore it doesn't follow the pointer.

Demo : http://codepen.io/mebibou/pen/yyZRXG

desandro commented 9 years ago

jQuery UI Draggable doesn't support this either. See http://codepen.io/desandro/pen/RNveEL This is a specialized edge case. If a transform or zoom is being applied, I'll leave it to the developer to resolve this. This is outside Draggabilly's scope.