diff --git a/index.html b/index.html index c54dd17..93e3367 100644 --- a/index.html +++ b/index.html @@ -4146,8 +4146,8 @@

Exercise 33: Improving our mouse drag event

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 }; }); });