Skip to content

Commit

Permalink
Merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
JSteunou committed Jul 17, 2014
2 parents 2fbb803 + 6568727 commit bb9aa15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@
pointer, 'mousemove', 'touchmove',
pointer, 'mouseup', 'touchend',
pointer, 'click',
pointer, 'mouseout',
pointer, 'mouseover',

doc,

Expand Down Expand Up @@ -293,8 +295,8 @@

bounds = target.getBoundingClientRect();

touch.x = touch.pageX - bounds.left - win.scrollX;
touch.y = touch.pageY - bounds.top - win.scrollY;
touch.x = touch.pageX - bounds.left - (win.scrollX || win.pageXOffset);
touch.y = touch.pageY - bounds.top - (win.scrollY || win.pageYOffset);

return touch;
}
Expand Down

0 comments on commit bb9aa15

Please sign in to comment.