Switch MouseDown event to MouseUp in NikseUpDown control

The code changes correct an event handling in the NikseUpDown custom control. Previously, the base's OnMouseDown event was called, but the correct behavior should be to call the base's OnMouseUp event. This switch ensures the control responds properly to mouse interactions.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
This commit is contained in:
Ivandro Jao 2024-04-02 13:12:19 +01:00
parent 31ed11f60a
commit 6b42f9a0ad

View File

@ -532,7 +532,7 @@ namespace Nikse.SubtitleEdit.Controls
_buttonLeftIsDown = false;
Invalidate();
}
base.OnMouseDown(e);
base.OnMouseUp(e);
}
protected override void OnMouseMove(MouseEventArgs e)