fastclick
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -738,2 +738,3 @@ ;(function () { | ||
var blackberryVersion; | ||
var firefoxVersion; | ||
@@ -796,2 +797,14 @@ // Devices that don't support touch don't need FastClick | ||
// Firefox version - zero for other browsers | ||
firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1]; | ||
if (firefoxVersion >= 27) { | ||
// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896 | ||
metaViewport = document.querySelector('meta[name=viewport]'); | ||
if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) { | ||
return true; | ||
} | ||
} | ||
// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version | ||
@@ -818,3 +831,3 @@ // http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx | ||
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { | ||
if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) { | ||
@@ -821,0 +834,0 @@ // AMD. Register as an anonymous module. |
{ | ||
"name": "fastclick", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Polyfill to remove click delays on browsers with touch UIs.", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
35122
690