From dd3ecfcf3e34da58f754efbff3e40d728e7092ee Mon Sep 17 00:00:00 2001 From: Anton Mukhin Date: Thu, 19 Jun 2025 10:14:57 +0300 Subject: [PATCH] TODO feature: Fix straight (Ctrl/Shift) lines paint to reset coordinate on mouse-up even if Ctrl/Shift is still held --- McBitFont/Form1.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/McBitFont/Form1.cs b/McBitFont/Form1.cs index 65afe36..4759651 100644 --- a/McBitFont/Form1.cs +++ b/McBitFont/Form1.cs @@ -574,9 +574,9 @@ namespace McBitFont { } // Check for Shift / Ctrl keys for straight lines - if (ModifierKeys.HasFlag(Keys.Shift)) { + if (ModifierKeys.HasFlag(Keys.Shift) && mouseDown) { j = lastY; - } else if (ModifierKeys.HasFlag(Keys.Control)) { + } else if (ModifierKeys.HasFlag(Keys.Control) && mouseDown) { i = lastX; } lastX = i;