From 6b42f9a0ad7b3aed93cbcdf1eb5588ab11e82b6c Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Tue, 2 Apr 2024 13:12:19 +0100 Subject: [PATCH] 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 --- src/ui/Controls/NikseUpDown.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/Controls/NikseUpDown.cs b/src/ui/Controls/NikseUpDown.cs index 91626c995..5cd472ef5 100644 --- a/src/ui/Controls/NikseUpDown.cs +++ b/src/ui/Controls/NikseUpDown.cs @@ -532,7 +532,7 @@ namespace Nikse.SubtitleEdit.Controls _buttonLeftIsDown = false; Invalidate(); } - base.OnMouseDown(e); + base.OnMouseUp(e); } protected override void OnMouseMove(MouseEventArgs e)