P5-1110 Fixed issue with to short apertures on mobile
This commit is contained in:
@@ -38,12 +38,13 @@ function ApertureHandler(canvas) {
|
|||||||
o.visible = true;
|
o.visible = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
active[0].width= active[1].width = canvas.width;
|
||||||
|
active[0].height = active[1].height = canvas.height;
|
||||||
|
|
||||||
if (axis === 'y') {
|
if (axis === 'y') {
|
||||||
active[0].width= active[1].width = canvas.width;
|
|
||||||
active[0].top = viewport.top - active[0].height + 0.5;
|
active[0].top = viewport.top - active[0].height + 0.5;
|
||||||
active[1].top = viewport.top + viewport.height - 0.5;
|
active[1].top = viewport.top + viewport.height - 0.5;
|
||||||
} else {
|
} else {
|
||||||
active[0].height = active[1].height = canvas.height;
|
|
||||||
active[0].left = viewport.left - active[0].width + 0.5;
|
active[0].left = viewport.left - active[0].width + 0.5;
|
||||||
active[1].left = viewport.left + viewport.width - 0.5;
|
active[1].left = viewport.left + viewport.width - 0.5;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user