Skip to content

Commit 6c902d3

Browse files
committed
Dev fixes
1 parent 942ecde commit 6c902d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Mostly lifted from https://andreypopp.com/posts/2013-05-16-makefile-recipes-for-node-js.html
22
# Thanks @andreypopp
33

4-
BIN := $(shell npm bin)
4+
export BIN := $(shell npm bin)
55
DIST = dist
66
LIB = $(DIST)/react-draggable.js
77
MIN = $(DIST)/react-draggable.min.js

example/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
},
6666

6767
handleDrag: function (e, ui) {
68-
var {left, top} = this.state.position;
68+
var {left, top} = this.state.deltaPosition;
6969
this.setState({
7070
deltaPosition: {
7171
left: left + ui.deltaX,
@@ -84,7 +84,7 @@
8484

8585
render: function () {
8686
var drags = {onStart: this.onStart, onStop: this.onStop};
87-
var {top. left} = this.state.deltaPosition;
87+
var {top, left} = this.state.deltaPosition;
8888
return (
8989
<div>
9090
<h1>React Draggable</h1>

0 commit comments

Comments
 (0)