prevent scrollbar on canvas page
This commit is contained in:
parent
41185859f1
commit
50076dab07
|
@ -273,7 +273,7 @@ const resizeHandler = () => {
|
|||
canvas.width = window.innerWidth * dpr;
|
||||
canvas.height = (window.innerHeight - rect.height) * dpr;
|
||||
canvas.style.width = `${window.innerWidth}px`;
|
||||
canvas.style.height = `${window.innerHeight - rect.height - 1}px`;
|
||||
canvas.style.height = `${window.innerHeight - rect.height - 4}px`;
|
||||
|
||||
ctx.restore();
|
||||
ctx.save();
|
||||
|
|
Loading…
Reference in a new issue