File tree 1 file changed +4
-4
lines changed
assets/javascripts/vendor 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
3
3
*
4
- * @version 1.0.1
4
+ * @version 1.0.2
5
5
* @codingstandard ftlabs-jsv2
6
6
* @copyright The Financial Times Limited [All Rights Reserved]
7
7
* @license MIT License (see LICENSE.txt)
12
12
13
13
14
14
/**
15
- * Instantiate fast-clicking listeners on the specificed layer.
15
+ * Instantiate fast-clicking listeners on the specified layer.
16
16
*
17
17
* @constructor
18
18
* @param {Element } layer The layer to listen on
@@ -743,7 +743,7 @@ FastClick.notNeeded = function(layer) {
743
743
return true ;
744
744
}
745
745
// Chrome 32 and above with width=device-width or less don't need FastClick
746
- if ( chromeVersion > 31 && window . innerWidth <= window . screen . width ) {
746
+ if ( chromeVersion > 31 && document . documentElement . scrollWidth <= window . outerWidth ) {
747
747
return true ;
748
748
}
749
749
}
@@ -775,7 +775,7 @@ FastClick.attach = function(layer, options) {
775
775
} ;
776
776
777
777
778
- if ( typeof define ! == 'undefined ' && define . amd ) {
778
+ if ( typeof define == 'function' && typeof define . amd == 'object ' && define . amd ) {
779
779
780
780
// AMD. Register as an anonymous module.
781
781
define ( function ( ) {
You can’t perform that action at this time.
0 commit comments