Added FastClick

iOS artificially introduces 300ms of delay on clicks, which FastClick
eliminates.
This commit is contained in:
Michael Schmatz 2014-10-26 18:34:03 -04:00
parent c0f5c357ba
commit cd0bed2df2
3 changed files with 9 additions and 1 deletions

View file

@ -36,6 +36,12 @@
<script src="/javascripts/vendor.js"></script>
<script src="/javascripts/aether.js"></script>
<script src="/javascripts/app.js"></script> <!-- it's all Backbone! -->
<script>
$(function() {
FastClick.attach(document.body);
});
</script>
<!-- Can move to lib/services/linkedin.coffee instead somehow? Or just get rid of LinkedIn...
</script>

View file

@ -46,7 +46,8 @@
"jquery.browser": "~0.0.6",
"zatanna": "https://github.com/differentmatt/zatanna.git#master",
"modernizr": "~2.8.3",
"backfire": "~0.3.0"
"backfire": "~0.3.0",
"fastclick": "~1.0.3"
},
"overrides": {
"backbone": {

View file

@ -61,6 +61,7 @@ exports.config =
'bower_components/tv4/tv4.js'
# Aether before box2d for some strange Object.defineProperty thing
'bower_components/aether/build/aether.js'
'bower_components/fastclick/lib/fastclick.js'
'bower_components/d3/d3.min.js'
'vendor/scripts/async.js'
]