fix scaling issues on mobile
This commit is contained in:
parent
611a2da315
commit
a6759c6370
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ body {
|
||||||
color: white;
|
color: white;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#no-overflow {
|
#no-overflow {
|
||||||
|
|
|
@ -230,7 +230,7 @@ Canvas.prototype.click = function () {
|
||||||
this.firstY = this.pageY;
|
this.firstY = this.pageY;
|
||||||
}
|
}
|
||||||
|
|
||||||
var canvas = new Canvas(Math.floor(window.innerWidth / 4.5), Math.floor(window.innerHeight / 6.5), 4);
|
var canvas = new Canvas(Math.floor(window.innerWidth / 4.5), Math.floor(window.innerHeight / 7.5), 4);
|
||||||
var handler = new TickHandler(canvas);
|
var handler = new TickHandler(canvas);
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue