Skip to content

Commit

Permalink
Built new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Patty committed Jan 19, 2018
1 parent 0ef3e39 commit 0cfa12d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1889,12 +1889,14 @@ var Draggable = function (_React$Component) {
x: e.clientX,
y: e.clientY
});
_this.props.onDrag();
}, _this.updateMobileCoordinates = function (e) {
var touch = e.touches[0];
_store2.default.update({
x: touch.clientX,
y: touch.clientY
});
_this.props.onDrag();
}, _temp), _possibleConstructorReturn(_this, _ret);
}

Expand All @@ -1917,6 +1919,7 @@ var Draggable = function (_React$Component) {
Draggable.defaultProps = {
onDragEnd: function onDragEnd() {},
onDragStart: function onDragStart() {},
onDrag: function onDrag() {},
data: null,
type: null,
delay: 8
Expand Down Expand Up @@ -1997,13 +2000,15 @@ var Droppable = function (_React$Component) {
currentlyHoveredDroppableId: _this.dragId,
currentlyHoveredDroppableAccepts: _this.props.accepts
});
_this.props.onDragEnter();
}
}, _this.setOut = function () {
if (_store2.default.getState().isDragging) {
_store2.default.update({
currentlyHoveredDroppableId: null,
currentlyHoveredDroppableAccepts: null
});
_this.props.onDragLeave();
}
}, _this.onDrop = function () {
var _store$getState = _store2.default.getState(),
Expand Down Expand Up @@ -2045,6 +2050,8 @@ var Droppable = function (_React$Component) {

Droppable.defaultProps = {
onDrop: function onDrop() {},
onDragEnter: function onDragEnter() {},
onDragLeave: function onDragLeave() {},
accepts: null
};

Expand Down

0 comments on commit 0cfa12d

Please sign in to comment.