Skip to content

Commit

Permalink
Also do screenX/Y in touchAverage for Opera mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Sep 12, 2015
1 parent db41a72 commit 886e54c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,9 @@
pageX: (touches[0].pageX + touches[1].pageX) / 2,
pageY: (touches[0].pageY + touches[1].pageY) / 2,
clientX: (touches[0].clientX + touches[1].clientX) / 2,
clientY: (touches[0].clientY + touches[1].clientY) / 2
clientY: (touches[0].clientY + touches[1].clientY) / 2,
screenX: (touches[0].screenX + touches[1].screenX) / 2,
screenY: (touches[0].screenY + touches[1].screenY) / 2
};
}

Expand Down

0 comments on commit 886e54c

Please sign in to comment.