* UIScrollBar: 修复了一些重载事件

This commit is contained in:
Sunny 2024-11-04 14:00:21 +08:00
parent b68740f828
commit 63952daa11

View File

@ -20,6 +20,7 @@
* 2020-04-25: V2.2.4 * 2020-04-25: V2.2.4
* 2022-03-19: V3.1.1 * 2022-03-19: V3.1.1
* 2022-11-03: V3.2.6 * 2022-11-03: V3.2.6
* 2024-11-04: V3.7.2
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -327,6 +328,8 @@ namespace Sunny.UI
/// <param name="e">鼠标参数</param> /// <param name="e">鼠标参数</param>
protected override void OnMouseDown(MouseEventArgs e) protected override void OnMouseDown(MouseEventArgs e)
{ {
base.OnMouseDown(e);
if (e.Button != MouseButtons.Left) if (e.Button != MouseButtons.Left)
{ {
return; return;
@ -400,6 +403,7 @@ namespace Sunny.UI
dragMove = false; dragMove = false;
StopScroll(); StopScroll();
Invalidate(); Invalidate();
base.OnMouseUp(e);
} }
private int MousePos; private int MousePos;
@ -439,6 +443,8 @@ namespace Sunny.UI
{ {
Invalidate(); Invalidate();
} }
base.OnMouseMove(e);
} }
/// <summary> /// <summary>