File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,10 @@ var App = React.createClass({
71
71
< div className = "box" > I can be dragged anywhere</ div >
72
72
</ Draggable >
73
73
< 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 >
75
75
</ Draggable >
76
76
< 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 >
78
78
</ Draggable >
79
79
< Draggable onStart = { ( ) => false } >
80
80
< div className = "box" > I don't want to be dragged</ div >
@@ -97,9 +97,6 @@ var App = React.createClass({
97
97
< div > Dragging here works</ div >
98
98
</ div >
99
99
</ Draggable >
100
- < Draggable { ...dragHandlers } axis = "y" >
101
- < div className = "box" > I can only be dragged by the Y axis</ div >
102
- </ Draggable >
103
100
< Draggable grid = { [ 25 , 25 ] } { ...dragHandlers } >
104
101
< div className = "box" > I snap to a 25 x 25 grid</ div >
105
102
</ Draggable >
You can’t perform that action at this time.
0 commit comments