pixel-editor
pixel-editor copied to clipboard
canvas dragging bounds need to detect if layers panel is open
The limits for where the canvas can be dragged on screen do not take into account the new layers panel, so the canvas can get lost underneath it, and is not perfectly centered when first created.
This is fixed and not a bug anymore, but should be slightly altered so the maxOffset is changed depending on whether the layers panel is open or not.