disable overflow

This commit is contained in:
tdgmdev 2023-12-03 20:53:21 -05:00
parent 3762ae2771
commit 455df6e78e
2 changed files with 5 additions and 0 deletions

View file

@ -7,6 +7,10 @@ body {
text-align: center;
}
#no-overflow {
overflow: hidden;
}
canvas {
margin: auto;
display: block;

View file

@ -125,6 +125,7 @@ Canvas.prototype.render = function () {
if (window.loc2 && loc2.get('only') == 'true') {
this.stopNow = true;
document.querySelector('canvas').id = 'main2';
document.querySelector('body').id = 'no-overflow';
return;
}