Remove deprecated touch detection

This commit is contained in:
MrTimscampi 2020-04-02 20:25:42 +02:00
parent 44aa8e5ccb
commit 511b151d71

View file

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