Skip to content

Commit

Permalink
Tweaked detection for touch devices [#92]
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Madonna authored and marcandre committed Aug 18, 2015
1 parent 01eb6a0 commit 4c2d0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/featherlight.gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
return warn('Load the featherlight plugin before the gallery plugin');
}

var isTouchAware = 'ontouchstart' in document.documentElement,
var isTouchAware = ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch,
jQueryConstructor = $.event && $.event.special.swipeleft && $,
hammerConstructor = window.Hammer && function($el){
var mc = new window.Hammer.Manager($el[0]);
Expand Down

0 comments on commit 4c2d0e2

Please sign in to comment.