only react to screen resize when device has no touchscreen (#650)
This commit is contained in:
@@ -104,7 +104,9 @@ export default class App extends Component {
|
|||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.getConfig();
|
this.getConfig();
|
||||||
|
if (!this.hasTouchScreen) {
|
||||||
window.addEventListener('resize', this.handleWindowResize);
|
window.addEventListener('resize', this.handleWindowResize);
|
||||||
|
}
|
||||||
window.addEventListener('blur', this.handleWindowBlur);
|
window.addEventListener('blur', this.handleWindowBlur);
|
||||||
window.addEventListener('focus', this.handleWindowFocus);
|
window.addEventListener('focus', this.handleWindowFocus);
|
||||||
if (this.hasTouchScreen) {
|
if (this.hasTouchScreen) {
|
||||||
|
|||||||
Reference in New Issue
Block a user