Undo History Gets Corrupted When Pressing Cmd+Z During an Active Mouse Drag

Hi everyone,

I’ve been experiencing an issue with the Undo system in Glyphs, and I’m wondering if there’s a way to prevent it.

The problem occurs when I’m in the middle of an operation and haven’t released the mouse button yet. For example:

  • When drawing with the Pen tool.

  • When moving a node or handle using the Select tool.

If I accidentally press Cmd+Z while still holding the mouse button (for example, during a drag operation), the Undo system seems to get corrupted. The really frustrating part is that this can cause the entire undo history to become unusable or disappear.

I’ve experienced this issue since Glyphs 3, and it still seems to be present in Glyphs 4.

Is this a known issue? Is there any way to prevent it or recover the undo history when it happens?

Thanks in advance for your help!

I can reproduce the issue. I’ll have a look and report back once I know more.