1j01 / jspaint

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

"undo" undoes more than expected #292

Open JustasB opened 2 years ago

JustasB commented 2 years ago

Hello,

Not sure if this is a bug or a feature, but undo functionality undoes more than the most recent operation.

Steps to reproduce:

  1. Go to https://jspaint.app/
  2. Using the default pencil tool, draw three separate curves (left_click+hold, drag, release).
  3. Edit -> Undo

Expected result: The 3rd curve disappears

Actual result: All three lines disappear

1j01 commented 2 years ago

I'm not able to reproduce this behavior. Is it still happening for you? If so, what does the History window look like? (Edit > History)

JustasB commented 2 years ago

Actually, you're right, the issue is not present when using incognito in Chrome.

I narrowed it down to the DuckDuckGo Privacy Essentials (DDGPE) extension in Chrome.

When the extension is disabled, the normal behavior is restored (undoes one last line).

I reported the issue to DDGPE -- it looks like this is an issue with DDGPE and not jspaint per se.

Let me know if you still would like to see the history window screenshots.