fix scroll bar on canvas page
This commit is contained in:
parent
0cc6f09586
commit
4dac33246c
|
@ -271,7 +271,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}px`;
|
||||
canvas.style.height = `${window.innerHeight - rect.height - 1}px`;
|
||||
|
||||
ctx.restore();
|
||||
ctx.save();
|
||||
|
|
Loading…
Reference in a new issue