mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added liam's fix
This commit is contained in:
parent
d6b292a443
commit
8d033778a5
@ -164,7 +164,7 @@ class Layer {
|
|||||||
|
|
||||||
setCanvasOffset (offsetLeft, offsetTop) {
|
setCanvasOffset (offsetLeft, offsetTop) {
|
||||||
//horizontal offset
|
//horizontal offset
|
||||||
var minXOffset = -this.canvasSize[0] * zoom + 164;
|
var minXOffset = -this.canvasSize[0] * zoom + 300;
|
||||||
var maxXOffset = window.innerWidth - 148;
|
var maxXOffset = window.innerWidth - 148;
|
||||||
|
|
||||||
if (offsetLeft < minXOffset)
|
if (offsetLeft < minXOffset)
|
||||||
|
Loading…
Reference in New Issue
Block a user