1j01 / jspaint

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

Color picker dialog is blocked as a popup in Firefox #114

Closed 1j01 closed 3 years ago

1j01 commented 6 years ago

The dialog is currently triggered by calling click() on an <input type="color">, which is allowed in chrome, since it's called on a user gesture, but apparently not in Firefox.

This may be able to be fixed by reworking it to allow normal clicks to fall thru at appropriate times, altho I think I tried that first and it wasn't practical/feasible. It might not be feasible because we need to support right clicking as well. (double right clicking, and distinguish that from double left clicking)

Alternatively, we could try to implement the classic color picker dialog. On Windows 10 (as of writing) the color picker dialog is basically the same as the one in Windows 98, but on some platforms like phones, there are very different, and sometimes with more limited functionality.