diff --git a/src/js/includes/ApertureHandler.js b/src/js/includes/ApertureHandler.js index 08e11cd..54ac971 100644 --- a/src/js/includes/ApertureHandler.js +++ b/src/js/includes/ApertureHandler.js @@ -38,12 +38,13 @@ function ApertureHandler(canvas) { o.visible = true; }); + active[0].width= active[1].width = canvas.width; + active[0].height = active[1].height = canvas.height; + if (axis === 'y') { - active[0].width= active[1].width = canvas.width; active[0].top = viewport.top - active[0].height + 0.5; active[1].top = viewport.top + viewport.height - 0.5; } else { - active[0].height = active[1].height = canvas.height; active[0].left = viewport.left - active[0].width + 0.5; active[1].left = viewport.left + viewport.width - 0.5; }