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

Possible to use translate instead of top/left? #53

Open
YCMitch opened this issue Aug 2, 2019 · 1 comment
Open

Possible to use translate instead of top/left? #53

YCMitch opened this issue Aug 2, 2019 · 1 comment

Comments

@YCMitch
Copy link

YCMitch commented Aug 2, 2019

I might try and just do this myself, but I'm hitting some performance issues when there's a lot of draggables, presumably because it's using top/left rather than translate.

@kutlugsahin do you have any plans to modify this to use transforms? I assume it'd be pretty easy.

@kutlugsahin
Copy link
Owner

Hey @MitchEff

Draggables are already reordered by transform. But for ghost element I use top-left by default.
But if you want to change that there is a property can be used as follows.

import { smoothDnD } from 'smooth-dnd';

smoothDnD.useTransformForGhost = true;

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

2 participants