From 6c61fa9d48acb579f70289f3324cbe181c255173 Mon Sep 17 00:00:00 2001 From: Noah Jorgenson Date: Sun, 24 Jan 2016 02:24:04 -0800 Subject: [PATCH] Exercise 33: Drag contact offset --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e9700e2..9e913a6 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 }; }); });