0
Fork 0
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:
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({ 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);