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:
- Create a new 32x32 image
- Use the fill tool to fill the canvas with any color
- 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)
- 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.