diff --git a/xray.js b/xray.js index 741d677..2b7fddb 100644 --- a/xray.js +++ b/xray.js @@ -526,7 +526,7 @@ function setup() { [baseCtx, baseCtxResized, overlayCtx, overlayCtxResized, shadowCtx].forEach(ctx => { ctx.canvas.width = width; ctx.canvas.height = height; - ctx.canvas.style.left = fitScreen ? (availableWidth - width) / 2 + "px" : 0; + ctx.canvas.style.left = (availableWidth - width) / 2 + "px"; ctx.canvas.style.top = fitScreen ? (availableHeight - height) / 2 + "px" : 0; });