File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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)
55DIST = dist
66LIB = $(DIST ) /react-draggable.js
77MIN = $(DIST ) /react-draggable.min.js
Original file line number Diff line number Diff line change 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 ,
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 >
You can’t perform that action at this time.
0 commit comments