From 6d91b48b5de1d2760ac5487cc63f157e20a0e7b6 Mon Sep 17 00:00:00 2001 From: ucev Date: Tue, 11 Jan 2022 11:22:06 +0800 Subject: [PATCH] fix: evt.touches in touchmove maybe undefined --- inobounce.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inobounce.js b/inobounce.js index 20ee999..74c37e1 100644 --- a/inobounce.js +++ b/inobounce.js @@ -24,7 +24,7 @@ // Allow zooming var zoom = window.innerWidth / window.document.documentElement.clientWidth; - if (evt.touches.length > 1 || zoom !== 1) { + if (!evt.touches || evt.touches.length > 1 || zoom !== 1) { return; }