Skip to content

Commit

Permalink
reverse interaction direction with touch
Browse files Browse the repository at this point in the history
  • Loading branch information
tholman committed Oct 10, 2017
1 parent 5004743 commit e4d16bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions intense.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ var Intense = (function() {

function onTouchMove(event) {
event.preventDefault(); // Needed to keep this event firing.
mouse.xDest = event.touches[0].clientX;
mouse.yDest = event.touches[0].clientY;
mouse.xDest = window.innerWidth - event.touches[0].clientX;
mouse.yDest = window.innerHeight - event.touches[0].clientY;
}

// Exit on excape key pressed;
Expand Down
2 changes: 1 addition & 1 deletion intense.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e4d16bf

Please sign in to comment.