From 773684c2cb5f209dcf50a06bc8374fc100786bde Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Sun, 14 Oct 2018 14:25:10 +0300 Subject: [PATCH] Fix ios landscape again, add html linebreak to mailto --- public/src/js/about.js | 2 +- public/src/js/main.js | 2 +- public/src/js/scoresheet.js | 2 +- public/src/js/songselect.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/src/js/about.js b/public/src/js/about.js index 99ca917..a5e52c4 100644 --- a/public/src/js/about.js +++ b/public/src/js/about.js @@ -120,7 +120,7 @@ var issueBody = this.issueTemplate.join("\n") + "\n\n\n\n" + diag this.getLink(this.linkGithub).href += "?body=" + encodeURIComponent(issueBody) - this.getLink(this.linkEmail).href += "?body=" + encodeURIComponent(issueBody.replace(/\n/g, "\r\n")) + this.getLink(this.linkEmail).href += "?body=" + encodeURIComponent(issueBody.replace(/\n/g, "
\r\n")) } getLink(target){ return target.getElementsByTagName("a")[0] diff --git a/public/src/js/main.js b/public/src/js/main.js index 9e29573..7647985 100644 --- a/public/src/js/main.js +++ b/public/src/js/main.js @@ -66,7 +66,7 @@ pageEvents.add(versionDiv, ["click", "touchend"], () => { versionLink.click() }) resizeRoot() -pageEvents.add(window, "resize", resizeRoot) +setInterval(resizeRoot, 100) var loader = new Loader(() => { new Titlescreen() diff --git a/public/src/js/scoresheet.js b/public/src/js/scoresheet.js index 41c57e2..f2b3fdd 100644 --- a/public/src/js/scoresheet.js +++ b/public/src/js/scoresheet.js @@ -115,7 +115,7 @@ class Scoresheet{ ctx.save() var winW = innerWidth - var winH = innerHeight + var winH = lastHeight this.pixelRatio = window.devicePixelRatio || 1 winW *= this.pixelRatio winH *= this.pixelRatio diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index 12b2b76..61a4641 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -565,7 +565,7 @@ class SongSelect{ var ctx = this.ctx var winW = innerWidth - var winH = innerHeight + var winH = lastHeight if(winW / 32 > winH / 9){ winW = winH / 9 * 32 }