react-draggable icon indicating copy to clipboard operation
react-draggable copied to clipboard

Dynamic grid property

Open gamegee opened this issue 3 years ago • 0 comments
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 ?

gamegee avatar Apr 29 '22 16:04 gamegee