Skip to content

Commit

Permalink
One screen view adjust screen
Browse files Browse the repository at this point in the history
  • Loading branch information
kanurag94 committed Mar 29, 2020
1 parent a02ea18 commit 1d14a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/xaos.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ xaos.zoom = (function() {
function CanvasImage(canvas) {

if (canvas.width !== innerWidth || canvas.height !== innerHeight) {
canvas.width = innerWidth;
canvas.height = innerHeight;
canvas.width = innerWidth - innerWidth*0.2;
canvas.height = innerHeight - innerHeight*0.2;
} else {
ctx.clearRect(0, 0, canvas.width, canvas.height);
}
Expand Down

0 comments on commit 1d14a6b

Please sign in to comment.