Add FastClick

This commit is contained in:
Toby Zerner 2015-11-23 10:38:20 +10:30
parent 675412f181
commit d78bd82b65

View File

@ -80,4 +80,14 @@ app.initializers.replace('boot', () => {
basePath + '/',
mapRoutes(app.routes, basePath)
);
// Initialize FastClick, which makes links and buttons much more responsive on
// touch devices.
$(() => {
FastClick.attach(document.body);
$('body').addClass('ontouchstart' in window ? 'touch' : 'no-touch');
});
app.booted = true;
});