diff --git a/extensions/embed/js/forum/src/main.js b/extensions/embed/js/forum/src/main.js index 95ee565a9..72b5a05c4 100644 --- a/extensions/embed/js/forum/src/main.js +++ b/extensions/embed/js/forum/src/main.js @@ -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; });