dragdealer icon indicating copy to clipboard operation
dragdealer copied to clipboard

css: transform scale - DragDealer jumps on entry

Open Xaorn opened this issue 3 years ago • 0 comments

I found an issue with the DragDeal-Item in combination with the css-scale attribute - while clicking it makes a jump-movement depending on the actual scale-factor and distance to the wrapper.

Didn't found the solution yet - it seems to be in the calculation of animation.

The movement all together is increased with a higher scale..

The boundaries are fine


Small solution for me: (scale out of the css-element)

animate: function(direct, first) { .... var offset = [ (Cursor.x - this.offset.wrapper[0] - this.offset.mouse[0])/scale, (Cursor.y - this.offset.wrapper[1] - this.offset.mouse[1])/scale ]; ....

Xaorn avatar Feb 25 '22 13:02 Xaorn