mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
disable touch events in ember's event dispatcher (Chrome scrolling fix)
refs https://github.com/TryGhost/Ghost/issues/7860 - if touch event handlers are registered Chrome assumes it's being run on a touch device and will attempt to optimise scrolling by delaying `setTimeout` and XHRs which in turn plays havoc with infinite scroll performance
This commit is contained in:
parent
210057ef49
commit
c0d3c26257
1 changed files with 8 additions and 1 deletions
|
@ -12,7 +12,14 @@ Ember.MODEL_FACTORY_INJECTIONS = true;
|
||||||
let App = Application.extend({
|
let App = Application.extend({
|
||||||
Resolver,
|
Resolver,
|
||||||
modulePrefix: config.modulePrefix,
|
modulePrefix: config.modulePrefix,
|
||||||
podModulePrefix: config.podModulePrefix
|
podModulePrefix: config.podModulePrefix,
|
||||||
|
|
||||||
|
customEvents: {
|
||||||
|
touchstart: null,
|
||||||
|
touchmove: null,
|
||||||
|
touchend: null,
|
||||||
|
touchcancel: null
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
loadInitializers(App, config.modulePrefix);
|
loadInitializers(App, config.modulePrefix);
|
||||||
|
|
Loading…
Add table
Reference in a new issue