mirror of
https://github.com/flarum/framework.git
synced 2025-01-31 18:34:01 +08:00
Add FastClick
This commit is contained in:
parent
675412f181
commit
d78bd82b65
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user