Skip to content

Commit 9ae85b8

Browse files
author
Matt Zabriskie
committed
Updating README
1 parent d1b7f5d commit 9ae85b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ var App = React.createClass({
5050
//
5151
// `cancel` specifies a selector to be used to prevent drag initialization.
5252
//
53+
// `grid` specifies the x and y that dragging should snap to.
54+
//
5355
// `zIndex` specifies the zIndex to use while dragging.
5456
//
5557
// `onStart` is called when dragging starts.
@@ -61,6 +63,7 @@ var App = React.createClass({
6163
<Draggable
6264
axis="x"
6365
handle=".handle"
66+
grid={[25, 25]}
6467
zIndex={100}
6568
onStart={this.handleStart}
6669
onDrag={this.handleDrag}

0 commit comments

Comments
 (0)