Skip to content

Commit 886e54c

Browse files
committed
Also do screenX/Y in touchAverage for Opera mobile
1 parent db41a72 commit 886e54c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

interact.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,9 @@
773773
pageX: (touches[0].pageX + touches[1].pageX) / 2,
774774
pageY: (touches[0].pageY + touches[1].pageY) / 2,
775775
clientX: (touches[0].clientX + touches[1].clientX) / 2,
776-
clientY: (touches[0].clientY + touches[1].clientY) / 2
776+
clientY: (touches[0].clientY + touches[1].clientY) / 2,
777+
screenX: (touches[0].screenX + touches[1].screenX) / 2,
778+
screenY: (touches[0].screenY + touches[1].screenY) / 2
777779
};
778780
}
779781

0 commit comments

Comments
 (0)