File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,10 +71,10 @@ var App = React.createClass({
7171 < div className = "box" > I can be dragged anywhere</ div >
7272 </ Draggable >
7373 < Draggable axis = "x" { ...dragHandlers } >
74- < div className = "box cursor-x" > I can only be dragged horizonally</ div >
74+ < div className = "box cursor-x" > I can only be dragged horizonally (x axis) </ div >
7575 </ Draggable >
7676 < Draggable axis = "y" { ...dragHandlers } >
77- < div className = "box cursor-y" > I can only be dragged vertically</ div >
77+ < div className = "box cursor-y" > I can only be dragged vertically (y axis) </ div >
7878 </ Draggable >
7979 < Draggable onStart = { ( ) => false } >
8080 < div className = "box" > I don't want to be dragged</ div >
@@ -97,9 +97,6 @@ var App = React.createClass({
9797 < div > Dragging here works</ div >
9898 </ div >
9999 </ Draggable >
100- < Draggable { ...dragHandlers } axis = "y" >
101- < div className = "box" > I can only be dragged by the Y axis</ div >
102- </ Draggable >
103100 < Draggable grid = { [ 25 , 25 ] } { ...dragHandlers } >
104101 < div className = "box" > I snap to a 25 x 25 grid</ div >
105102 </ Draggable >
You can’t perform that action at this time.
0 commit comments