mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Added FastClick
iOS artificially introduces 300ms of delay on clicks, which FastClick eliminates.
This commit is contained in:
parent
c0f5c357ba
commit
cd0bed2df2
3 changed files with 9 additions and 1 deletions
|
@ -36,6 +36,12 @@
|
||||||
<script src="/javascripts/vendor.js"></script>
|
<script src="/javascripts/vendor.js"></script>
|
||||||
<script src="/javascripts/aether.js"></script>
|
<script src="/javascripts/aether.js"></script>
|
||||||
<script src="/javascripts/app.js"></script> <!-- it's all Backbone! -->
|
<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...
|
<!-- Can move to lib/services/linkedin.coffee instead somehow? Or just get rid of LinkedIn...
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -46,7 +46,8 @@
|
||||||
"jquery.browser": "~0.0.6",
|
"jquery.browser": "~0.0.6",
|
||||||
"zatanna": "https://github.com/differentmatt/zatanna.git#master",
|
"zatanna": "https://github.com/differentmatt/zatanna.git#master",
|
||||||
"modernizr": "~2.8.3",
|
"modernizr": "~2.8.3",
|
||||||
"backfire": "~0.3.0"
|
"backfire": "~0.3.0",
|
||||||
|
"fastclick": "~1.0.3"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"backbone": {
|
"backbone": {
|
||||||
|
|
|
@ -61,6 +61,7 @@ exports.config =
|
||||||
'bower_components/tv4/tv4.js'
|
'bower_components/tv4/tv4.js'
|
||||||
# Aether before box2d for some strange Object.defineProperty thing
|
# Aether before box2d for some strange Object.defineProperty thing
|
||||||
'bower_components/aether/build/aether.js'
|
'bower_components/aether/build/aether.js'
|
||||||
|
'bower_components/fastclick/lib/fastclick.js'
|
||||||
'bower_components/d3/d3.min.js'
|
'bower_components/d3/d3.min.js'
|
||||||
'vendor/scripts/async.js'
|
'vendor/scripts/async.js'
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue