element.addEventListener("touchend", function(e) {
+ // Ignore if more than one touch
+ if (e.touches.length + e.changedTouches.length != 1)
+ return;
+
e.stopPropagation();
e.preventDefault();
element.addEventListener("touchstart", function(e) {
+ // Ignore if more than one touch
+ if (e.touches.length != 1)
+ return;
+
e.stopPropagation();
e.preventDefault();
element.addEventListener("touchmove", function(e) {
+ // Ignore if more than one touch
+ if (e.touches.length != 1)
+ return;
+
e.stopPropagation();
e.preventDefault();