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; } }