From 511b151d71b2c9eb04b7a818ce30f372b08327ac Mon Sep 17 00:00:00 2001 From: MrTimscampi Date: Thu, 2 Apr 2020 20:25:42 +0200 Subject: [PATCH] Remove deprecated touch detection --- src/scripts/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/browser.js b/src/scripts/browser.js index f9e1942320..a6402d1393 100644 --- a/src/scripts/browser.js +++ b/src/scripts/browser.js @@ -292,7 +292,7 @@ define([], function () { } if (typeof document !== 'undefined') { - if (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { + if (('ontouchstart' in window) || (navigator.MaxTouchPoints > 0)) { browser.touch = true; } }