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:
Kevin Ansfield 2017-02-03 13:25:26 +00:00 committed by Austin Burdine
parent 210057ef49
commit c0d3c26257

View File

@ -12,7 +12,14 @@ Ember.MODEL_FACTORY_INJECTIONS = true;
let App = Application.extend({
Resolver,
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix
podModulePrefix: config.podModulePrefix,
customEvents: {
touchstart: null,
touchmove: null,
touchend: null,
touchcancel: null
}
});
loadInitializers(App, config.modulePrefix);