1j01 / jspaint

🎨 Classic MS Paint, REVIVED + ✨Extras
https://jspaint.app/about
MIT License
7.25k stars 567 forks source link

Cannot save data after using selection tool #293

Open mpasko opened 2 years ago

mpasko commented 2 years ago

Steps to reproduce:

  1. Paste some image using ctrl+v.
  2. Click anywhere outside of the image frame.
  3. Save the file using ctrl+s. Expected behaviour: data to be saved correctly. Actual behaviour: selection data is lost. Environment details: Firefox 98 on Fedora Linux (fc35)

Notice: trying to follow operation history, after "deselection" step the image is cleared up blank.

mpasko commented 2 years ago

Notice: The bug persistence is independent on pasted image format, it can be either png or jpeg.

mpasko commented 2 years ago

Notice: It may be a localized bug, on other browsers it works perfectly :(

mpasko commented 2 years ago

Retested on updated Firefox 100.0. The issue still persist. Very similar issue was observed when the whole image was being resized instead of saved.