mirror of
https://github.com/flarum/framework.git
synced 2025-02-23 01:33:09 +08:00
Remove FastClick. Fixes #1268
Turns out FastClick was causing textareas to be buggy on iOS Safari, and it wasn't really doing any good.
This commit is contained in:
parent
15b573bd93
commit
a8826dcd88
@ -9,7 +9,6 @@
|
|||||||
"color-thief": "v2.0",
|
"color-thief": "v2.0",
|
||||||
"mithril": "lhorie/mithril.js#v0.2.5",
|
"mithril": "lhorie/mithril.js#v0.2.5",
|
||||||
"es6-micro-loader": "caridy/es6-micro-loader#v0.2.1",
|
"es6-micro-loader": "caridy/es6-micro-loader#v0.2.1",
|
||||||
"fastclick": "~1.0.6",
|
|
||||||
"autolink": "~1.0.0",
|
"autolink": "~1.0.0",
|
||||||
"m.attrs.bidi": "tobscure/m.attrs.bidi",
|
"m.attrs.bidi": "tobscure/m.attrs.bidi",
|
||||||
"punycode": "http://cdnjs.cloudflare.com/ajax/libs/punycode/1.4.1/punycode.js"
|
"punycode": "http://cdnjs.cloudflare.com/ajax/libs/punycode/1.4.1/punycode.js"
|
||||||
|
@ -23,7 +23,6 @@ gulp({
|
|||||||
|
|
||||||
bowerDir + '/spin.js/spin.js',
|
bowerDir + '/spin.js/spin.js',
|
||||||
bowerDir + '/spin.js/jquery.spin.js',
|
bowerDir + '/spin.js/jquery.spin.js',
|
||||||
bowerDir + '/fastclick/lib/fastclick.js',
|
|
||||||
bowerDir + '/punycode/index.js'
|
bowerDir + '/punycode/index.js'
|
||||||
],
|
],
|
||||||
modules: {
|
modules: {
|
||||||
|
@ -78,11 +78,7 @@ export default function boot(app) {
|
|||||||
.toggleClass('scrolled', top > offset);
|
.toggleClass('scrolled', top > offset);
|
||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
// 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');
|
$('body').addClass('ontouchstart' in window ? 'touch' : 'no-touch');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user