Comments (2)
Ah yes, this needs to be documented better.
You need to use CSS.Translate.toString
instead of CSS.Transform.toString
if you don't want the scale to change when sorting between variable sized items
from dnd-kit.
I know this is quite old, but the above code is now unavailable and I am running into the same issue. @clauderic would you be able to provide more context as to where this needs to be implemented to avoid the stretching/resizing when dragging?
Edit: nevermind, I found it: https://docs.dndkit.com/api-documentation/draggable
from dnd-kit.
Related Issues (20)
- Kanban made with dndkit does not work with more than 5 items on each collumn
- Element jumps back and forth between two sortable contexts when dragged above the contexts
- How to ensure draggable items drag over (and not under) other items in the list HOT 1
- Sortable in @dnd-kit/dom is unusable HOT 1
- there is zero documentation about the DndContext props HOT 1
- DnD pushes parent div
- Issue with dnd and input
- Sorting variable width items in a wrapping flex container (tag/chip list) HOT 2
- Drag position is not working when the style overflowing
- Question on removing items from sortable
- Transform property mismatches on dragged item with flex layout
- DndContext make render to each columns
- Drag and Drop between lists with data from different api-s
- "Elements fly upwards when one of them is dragged down with horizontal scrolling."
- .
- Vertical Sortable List: wrong height calculation on reorder HOT 2
- fixed disable dragging and dropping action HOT 1
- Question: Resizing component while dragging
- onDragEnd not render update DragOverlay HOT 1
- Droppable Not functioning with absolute positioning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnd-kit.