import Application from '@ember/application';
import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';

import config from './config/environment';

const App = Application.extend({
  modulePrefix: config.modulePrefix,
  podModulePrefix: config.podModulePrefix,
  Resolver,
});

loadInitializers(App, config.modulePrefix);

export default App;

import Application from '@ember/application';
import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';

import config from './config/environment';

const App = Application.extend({
  modulePrefix: config.modulePrefix,
  podModulePrefix: config.podModulePrefix,
  Resolver,

  // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects
  customEvents: {
    // prevent non-passive listeners for touchstart/touchmove events
    touchstart: null,
    touchmove: null,
  },
});

loadInitializers(App, config.modulePrefix);

export default App;

Disable global, non-passive `touchstart` and `touchmove` event listeners
Disable global, non-passive `touchstart` and `touchmove` event listeners

see https://github.com/emberjs/ember.js/issues/15140
