Parcourir la source

Fixed bug: cantouch capability is detected as a false positive in WebKitGTK+

Enrique Ocaña González il y a 11 ans
Parent
commit
bcc2ce12ed
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      jquery.nicescroll.js

+ 2 - 2
jquery.nicescroll.js

@@ -338,8 +338,8 @@
     
     this.istouchcapable = false;  // desktop devices with touch screen support
     
-//## Check Chrome desktop with touch support
-    if (cap.cantouch&&cap.ischrome&&!cap.isios&&!cap.isandroid) {
+//## Check WebKit-based desktop with touch support
+    if (cap.cantouch&&cap.iswebkit&&!cap.isios&&!cap.isandroid) {
       this.istouchcapable = true;
       cap.cantouch = false;  // parse normal desktop events
     }