Explorar o código

Merge pull request #368 from eocanha/master

Fixed bug: cantouch capability is detected as a false positive in WebKitGTK+
Inuyaksa %!s(int64=11) %!d(string=hai) anos
pai
achega
dfa3cd484b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
     }