lospec/pixel-editor

canvas dragging bounds need to detect if layers panel is open

Opened this issue · 1 comments

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.