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));