From dbd47078d52bac803d76b3e16b2f0b296aca1620 Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Fri, 2 Jun 2017 15:30:07 +0200 Subject: [PATCH] P5-1110 Fixed issue with to short apertures on mobile --- src/js/includes/ApertureHandler.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }