Why some SPAs have stopped supporting touch events on touch laptops

Maybe I just made out right now, but everyone already knows for a long time, but it turns out that in Chrome 70 they did this: The ontouch * APIs default to disabled on desktop. 3r350.  
Accordingly, if in your code you relied on the presence of keys 3r3333. 'ontouch *' [/b] in document or window , your code will no longer determine what works on the touch device. 3r350.  
3r318. 3r340. 3r350.  
I ran into a typo: 3r350.  
var isTouchDevice = (('ontouchstart' in window) || (navigator.MaxTouchPoints> 0) || (navigator.msMaxTouchPoints> 0));

And when the first condition ceased to be true, the second fucked up. Should have been navigator.maxTouchPoints 3r350.  
And here, for example, in
jQuery UI Touch Punch ??? 3r340. here is the code: 3r350.  
$ .support.touch = 'ontouchend' in document;

Accordingly, support is also lost.
3r3355. ! function (e) {function t (t, n) {if (! (n in e)) {for (var r, a = e.document, i = a.scripts, o = i.length; o-- ;) if (-1! == i[o].src.indexOf (t)) {r = i[o]; break} if (! r) {r = a.createElement ("script"), r.type = "text /jаvascript", r.async =! ? r.defer =! ? r.src = t, r.charset = "UTF-8"; var d = function () {var e = a.getElementsByTagName ("script")[0]; e.parentNode.insertBefore (r, e)}; "[object Opera]" == e.opera? a.addEventListener? a.addEventListener ("DOMContentLoaded", d,! 1): e.attachEvent ("onload", d ): d ()}}} t ("//mediator.mail.ru/script/2820404/"""_mediator") () ();
+ 0 -

Add comment