瀏覽代碼

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

Enrique Ocaña González 11 年之前
父節點
當前提交
bcc2ce12ed
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      jquery.nicescroll.js

+ 2 - 2
jquery.nicescroll.js

@@ -338,8 +338,8 @@
     
     
     this.istouchcapable = false;  // desktop devices with touch screen support
     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;
       this.istouchcapable = true;
       cap.cantouch = false;  // parse normal desktop events
       cap.cantouch = false;  // parse normal desktop events
     }    
     }