From cc9c2759aa94b7aaac1eb528ed9685a4bead2b83 Mon Sep 17 00:00:00 2001 From: zhoushx3 <13929591279@163.com> Date: Mon, 21 Mar 2016 16:56:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/lightslider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/lightslider.js b/src/js/lightslider.js index aa84598..3218167 100644 --- a/src/js/lightslider.js +++ b/src/js/lightslider.js @@ -83,7 +83,7 @@ slideWidth = 0, thumbWidth = 0, interval = null, - isTouch = ('ontouchstart' in document.documentElement); + isTouch = ('ontouchstart' in document.documentElement) || ('ontouchstart' in window); var refresh = {}; refresh.chbreakpoint = function () { @@ -1137,4 +1137,4 @@ }); return this; }; -}(jQuery)); \ No newline at end of file +}(jQuery));