Skip to content

Commit

Permalink
Merge pull request #130 from magus/gh-pages
Browse files Browse the repository at this point in the history
Exercise 33: Drag contact offset
  • Loading branch information
morenoh149 committed Jan 29, 2016
2 parents 58f0cb3 + 6c61fa9 commit 762e80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4146,8 +4146,8 @@ <h4>Exercise 33: Improving our mouse drag event</h4>
takeUntil(spriteContainerMouseUps).
map(function(movePoint) {
return {
pageX: movePoint.pageX - contactPoint.offsetX,
pageY: movePoint.pageY - contactPoint.offsetY
pageX: movePoint.pageX + contactPoint.offsetX,
pageY: movePoint.pageY + contactPoint.offsetY
};
});
});
Expand Down

0 comments on commit 762e80a

Please sign in to comment.