Ver código fonte

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

Enrique Ocaña González 11 anos atrás
pai
commit
bcc2ce12ed
1 arquivos alterados com 2 adições e 2 exclusões
  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
     }