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

forceFallback & scaled container produce continuously multiplied scale #1699

Closed
gborreson opened this issue Dec 2, 2019 · 2 comments
Closed
Labels

Comments

@gborreson
Copy link

gborreson commented Dec 2, 2019

Problem:

When a container element wrapping the SortableJS interaction is being scaled with a CSS transform and forceFallback: true is being used, there appears to be an error in the calculation of scaling for the .sortable-fallback element, causing it to continually rescale ever smaller/larger on each drag position update.

With a scale of less than 1 on the ancestor element, the dragged item vanishes to oblivion and over-corrects X/Y position. With a scale of greater than 1, the dragged item grows to encompass the whole screen.

It seems that a calculation that should be happening once to correct for the scale is instead happening continuously and cumulatively.

This behaviour does not appear to exist in 1.9.0.

JSBin/JSFiddle demonstrating the problem:

Demonstration of draggable item shrinking exponentially:
http://jsfiddle.net/GBorreson/m549v1t0/6/

@gborreson gborreson changed the title forceFallback & scaled container produce multiplied diminishing scale forceFallback & scaled container produce continuously multiplied scale Dec 2, 2019
@ningbonb
Copy link

I encountered the same problem.

@owen-m1
Copy link
Member

owen-m1 commented Dec 25, 2019

Fixed in aae2c97

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

No branches or pull requests

3 participants