P5-1110 Fixed issue with to short apertures on mobile

This commit is contained in:
Erik Tiekstra
2017-06-02 15:30:07 +02:00
parent 3f039eeb7a
commit dbd47078d5
+3 -2
View File
@@ -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;
}