javascript - jquery: correct drag position after css rotation -
i´ve several divs being draggable via jquery this
$( '#mystack div' ).draggable({ stack: "#mystack div", start: function() { isdragging = true; }, stop: function() { isdragging = false;} });
...works fine far - problem is, after rotate div via css-transform like
target.css('-moz-transform', 'rotate(' + degree + 'deg)'); target.css('-webkit-transform', 'rotate(' + degree + 'deg)'); target.css('-o-transform', 'rotate(' + degree + 'deg)'); target.css('-ms-transform', 'rotate(' + degree + 'deg)');
and want drag image again - kinda 'jumps' in position when dragged again - meaning: not staying @ mouse position (where user started dragging rotated div) jumps few pixel or down or left after being rotated before?
any chance or idea correct position after rotating?
Comments
Post a Comment