lospec / pixel-editor

An online canvas based Pixel Art creation tool for Lospec.com

Home Page:https://Lospec.com/pixel-editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using the Rectangular Select Tool across image edges erases edge pixels

code807 opened this issue · comments

Describe the bug
When a rectangular selection spans the horizontal width of the image, pixels on the edges are erased.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new 32x32 image
  2. Use the fill tool to fill the canvas with any color
  3. Using the Rectangular Select Tool, create a selection box that spans from the very top left pixel to the very bottom right pixel (this works at any height as long as the box spans entirely from the left to right sides)
  4. Deselect. The right and left columns of the selected pixels should be missing

Expected behavior
The selected pixels should not be altered or removed by selecting them.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 116.0.5845.96

Additional context
Tested multiple times on multiple canvas sizes on Pixel Editor version 1.1.0. I have not tested for this behavior on other browsers.