Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

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

Thilo Billerbeckc39ce0d82f9c
diff --git a/webroot/js/app.js b/webroot/js/app.js
index 8f9ea0d0f0..e0d691ab5e 100644
--- a/webroot/js/app.js
+++ b/webroot/js/app.js
@@ -104,7 +104,9 @@ export default class App extends Component {
componentDidMount() {
this.getConfig();
- window.addEventListener('resize', this.handleWindowResize);
+ if (!this.hasTouchScreen) {
+ window.addEventListener('resize', this.handleWindowResize);
+ }
window.addEventListener('blur', this.handleWindowBlur);
window.addEventListener('focus', this.handleWindowFocus);
if (this.hasTouchScreen) {