Skip to content

Commit

Permalink
Merge pull request #167 from JonathanPicques/master
Browse files Browse the repository at this point in the history
Add origin subtract for X0 and Y0
  • Loading branch information
taye committed Mar 16, 2015
2 parents 5364889 + fe1bb84 commit 669146e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -3341,10 +3341,10 @@
this.clientX = client.x;
this.clientY = client.y;

this.x0 = interaction.startCoords.page.x;
this.y0 = interaction.startCoords.page.y;
this.clientX0 = interaction.startCoords.client.x;
this.clientY0 = interaction.startCoords.client.y;
this.x0 = interaction.startCoords.page.x - origin.x;
this.y0 = interaction.startCoords.page.y - origin.y;
this.clientX0 = interaction.startCoords.client.x - origin.x;
this.clientY0 = interaction.startCoords.client.y - origin.y;
this.ctrlKey = event.ctrlKey;
this.altKey = event.altKey;
this.shiftKey = event.shiftKey;
Expand Down

0 comments on commit 669146e

Please sign in to comment.