Commit 773684c2 authored by LoveEevee's avatar LoveEevee

Fix ios landscape again, add html linebreak to mailto

parent 89f352bc
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
var issueBody = this.issueTemplate.join("\n") + "\n\n\n\n" + diag var issueBody = this.issueTemplate.join("\n") + "\n\n\n\n" + diag
this.getLink(this.linkGithub).href += "?body=" + encodeURIComponent(issueBody) 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, "<br>\r\n"))
} }
getLink(target){ getLink(target){
return target.getElementsByTagName("a")[0] return target.getElementsByTagName("a")[0]
......
...@@ -66,7 +66,7 @@ pageEvents.add(versionDiv, ["click", "touchend"], () => { ...@@ -66,7 +66,7 @@ pageEvents.add(versionDiv, ["click", "touchend"], () => {
versionLink.click() versionLink.click()
}) })
resizeRoot() resizeRoot()
pageEvents.add(window, "resize", resizeRoot) setInterval(resizeRoot, 100)
var loader = new Loader(() => { var loader = new Loader(() => {
new Titlescreen() new Titlescreen()
......
...@@ -115,7 +115,7 @@ class Scoresheet{ ...@@ -115,7 +115,7 @@ class Scoresheet{
ctx.save() ctx.save()
var winW = innerWidth var winW = innerWidth
var winH = innerHeight var winH = lastHeight
this.pixelRatio = window.devicePixelRatio || 1 this.pixelRatio = window.devicePixelRatio || 1
winW *= this.pixelRatio winW *= this.pixelRatio
winH *= this.pixelRatio winH *= this.pixelRatio
......
...@@ -565,7 +565,7 @@ class SongSelect{ ...@@ -565,7 +565,7 @@ class SongSelect{
var ctx = this.ctx var ctx = this.ctx
var winW = innerWidth var winW = innerWidth
var winH = innerHeight var winH = lastHeight
if(winW / 32 > winH / 9){ if(winW / 32 > winH / 9){
winW = winH / 9 * 32 winW = winH / 9 * 32
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment