Skip to content

Commit 3f1f4ac

Browse files
committed
Port #76 (x/y position when axis limit is reached)
1 parent cd5f209 commit 3f1f4ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Draggable.es6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,12 @@ export default class Draggable extends DraggableCore {
230230
// Set left if horizontal drag is enabled
231231
x: canDragX(this) ?
232232
this.state.clientX :
233-
0,
233+
this.props.start.x,
234234

235235
// Set top if vertical drag is enabled
236236
y: canDragY(this) ?
237237
this.state.clientY :
238-
0
238+
this.props.start.y
239239
});
240240

241241
// zIndex option

0 commit comments

Comments
 (0)