Skip to content

Commit

Permalink
Add getInitialOffsetFromClient and getCurrentOffsetFromClient to Drag…
Browse files Browse the repository at this point in the history
…DropContext
  • Loading branch information
gaearon committed Feb 27, 2015
1 parent de6eeb6 commit 2e785fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/utils/DragDropContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ var DragDropContext = {
x: currentOffset.x - initialOffset.x,
y: currentOffset.y - initialOffset.y
};
},

getInitialOffsetFromClient() {
return DragOffsetStore.getInitialOffsetFromClient();
},

getCurrentOffsetFromClient() {
return DragOffsetStore.getCurrentOffsetFromClient();
}
};

Expand Down

0 comments on commit 2e785fc

Please sign in to comment.