react-smooth-dnd icon indicating copy to clipboard operation
react-smooth-dnd copied to clipboard

Possible to use translate instead of top/left?

Open YCMitch opened this issue 4 years ago • 1 comments

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.

YCMitch avatar Aug 02 '19 02:08 YCMitch

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;

kutlugsahin avatar Oct 24 '19 13:10 kutlugsahin