Browse Source

only react to screen resize when device has no touchscreen (#650)

pull/663/head
Thilo Billerbeck 4 years ago committed by GitHub
parent
commit
f9e3dc2b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      webroot/js/app.js

2
webroot/js/app.js

@ -104,7 +104,9 @@ export default class App extends Component { @@ -104,7 +104,9 @@ export default class App extends Component {
componentDidMount() {
this.getConfig();
if (!this.hasTouchScreen) {
window.addEventListener('resize', this.handleWindowResize);
}
window.addEventListener('blur', this.handleWindowBlur);
window.addEventListener('focus', this.handleWindowFocus);
if (this.hasTouchScreen) {

Loading…
Cancel
Save