Fixed issue #16 by decreasing maxXOffset

This commit is contained in:
Leamsi Escribano 2020-09-16 15:39:58 -04:00
parent e58326600d
commit 54f7d74a38

View File

@ -1,7 +1,7 @@
function setCanvasOffset (canvas, offsetLeft, offsetTop) {
//horizontal offset
var minXOffset = -canvasSize[0]*zoom+ 164;
var maxXOffset = window.innerWidth - 148;
var maxXOffset = window.innerWidth - 300;
if (offsetLeft < minXOffset)
canvas.style.left = minXOffset +'px';