Skip to content

Commit ed32ee7

Browse files
committed
docs(example): remove redundant Y axis example
1 parent 016bf21 commit ed32ee7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

example/example.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)