In the desktop version, chrome 29 "window.Touch" is no longer set to "undefined", this is a problem because I used it to determine if my application is running on a touch device.
Is there an alternative solution?
thanks
Yes, use 'ontouchstart' in document.documentElement [source: How to check browser for touchstart support using JS / jQuery? ]
'ontouchstart' in document.documentElement
var isTouchDevice = 'ontouchstart' in document.documentElement;
or
if('ontouchstart' in document.documentElement) { //do something with touch stuff }
More detailed answers and more specific solutions here: What is the best way to detect a touch screen device using JavaScript?
Maybe window.Touch.length is the solution to this problem?
window.Touch.length
Source: https://habr.com/ru/post/1499087/More articles:Recover jdbc connection after db link failure - javaCaching responses in express - node.jsUnderstanding the Big O note sourced from code - javaCalculation of distances with longitude and latitude has different results - phpChanging the detailed report format for networks - pythonhow to kill a specific process using% cpu in a given time in python on linux? - pythonIs it possible to define an implicit conversion operator in std :: array? - c ++android-transparent RelativeLayout - javaPass Base64 jpeg image to og: image - htmlWhat are the types of Infinity and NaN? - ruby | fooobar.comAll Articles