Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css: transform scale - DragDealer jumps on entry #135

Open
Xaorn opened this issue Feb 25, 2022 · 0 comments
Open

css: transform scale - DragDealer jumps on entry #135

Xaorn opened this issue Feb 25, 2022 · 0 comments

Comments

@Xaorn
Copy link

Xaorn commented Feb 25, 2022

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
];
....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant