1j01 / jspaint

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

Pasting an image from out of jspaint ignores transparent selection #303

Open naufik opened 2 years ago

naufik commented 2 years ago

Reproducing

  1. Use the select tool set selection mode to transparent selection.
  2. Set secondary color to, say, white.
  3. Paste an image from an external source (not from within jspaint itself) that has contains the secondary color.
  4. Verify that selection mode is still transparent selection.
  5. Without deselecting the image, move the pasted image - then the white (for this example) color will not be rendered as transparent. This can be fixed by selecting opaque selection and then setting it back to transparent selection.

Expected Behavior

Either: