- window.addEventListener("resize", this.adjustBoard);
- // TODO: find sometjhing better than next height adjustment...
- // maybe each variant could give its ratio (?!)
- setTimeout( () => { this.adjustBoard("vertical"); }, 1000);
+ window.addEventListener("resize", () => this.adjustBoard());
+ if ("ontouchstart" in window) {
+ // TODO: find something better than next height adjustment...
+ // maybe each variant could give its ratio (?!)
+ setTimeout( () => { this.adjustBoard("vertical"); }, 1000);
+ }