Skip to content

Commit

Permalink
Made fastclick module
Browse files Browse the repository at this point in the history
  • Loading branch information
grassick committed Dec 16, 2013
1 parent b3bec39 commit 1a7e0b3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 740 deletions.
1 change: 0 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module.exports = function(grunt) {
'vendor/bootstrap/js/bootstrap.min.js',
'vendor/handlebars.runtime.js',
'vendor/swag.js',
'vendor/fastclick.js',
'vendor/mobiscroll.custom-2.5.4.min.js',
'vendor/jquery.scrollintoview.min.js',
'vendor/overthrow.js',
Expand Down
3 changes: 2 additions & 1 deletion app/js/mobile-behavior.coffee
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Setup special mobile behavior.
fastclick = require("fastclick")

exports.setup = ($el) ->
# Make clicks fast
$ => FastClick.attach($el.get(0));
$ => fastclick($el.get(0))

# Make links and anything with class 'tappable' act on taps
pressedElem = null
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"grunt-contrib-concat": "~0.3.0",
"testem": "~0.5.15",
"uuid": "~1.4.1",
"browserify": "~3.4.0"
"browserify": "~3.4.0",
"fastclick": "~0.6.11"
}
}
Loading

0 comments on commit 1a7e0b3

Please sign in to comment.