Skip to content

Commit 068cd0d

Browse files
committed
Ignore transparent pixels.
1 parent f75b561 commit 068cd0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pg/inputPixelEditor/inputPixelEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ export default class PgInputPixelEditor extends HTMLElement {
14851485
this.#layer.forEach((layer) => {
14861486
const color = this.#data[layer][currentY][currentX];
14871487
const newColor = this.#data[layer][newY][newX];
1488-
if (color !== newColor) {
1488+
if (color !== 0 && color !== newColor) {
14891489
changes.set(`${layer},${newX},${newY}`, [layer, newX, newY, color]);
14901490
}
14911491
});

0 commit comments

Comments
 (0)