Skip to content

Commit

Permalink
Disable global, non-passive touchstart and touchmove event listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Apr 2, 2020
1 parent d983a7b commit 2ef5acc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ 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);
Expand Down

0 comments on commit 2ef5acc

Please sign in to comment.