react-draggable
react-draggable copied to clipboard
Dynamic grid property
trafficstars
I have a specific usecase where my grid is not linear on the Y axis.
Basically I have a list of rows which have different heights, and I want to define my grid size, so every snapToGrid will go to the next offset.
Here's what would works for me :
<Draggable
grid={[
25, // x axis
[25, 50, 20, 12, 100] // y axis
]}
/>
Is there a way to have such behavior with react-draggable ?