mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03: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
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user