mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Found a bug
Noted a possible fix
This commit is contained in:
parent
3e5b05bb6b
commit
9324a6a57e
@ -18,6 +18,13 @@ function updateMovePreview(mouseEvent) {
|
||||
}
|
||||
|
||||
function endSelection() {
|
||||
// We have to make something smarter:
|
||||
// Take the selected data
|
||||
// Take the data underlying the selected data
|
||||
// for every element in the selected data
|
||||
// if the current pixel is empty
|
||||
// copy the pixel in the selected data
|
||||
|
||||
TMPLayer.context.clearRect(0, 0, TMPLayer.canvas.width, TMPLayer.canvas.height);
|
||||
VFXLayer.context.clearRect(0, 0, VFXLayer.canvas.width, VFXLayer.canvas.height);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user