ソースを参照

Merge pull request #368 from eocanha/master

Fixed bug: cantouch capability is detected as a false positive in WebKitGTK+
Inuyaksa 11 年 前
コミット
dfa3cd484b
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
     
-//## 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
     }